const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Comparison-CCSYABF8.js","assets/circle-check-big-CeWksrQp.js","assets/PricingSection-BMwksWJ9.js"])))=>i.map(i=>d[i]); var Td=e=>{throw TypeError(e)};var rl=(e,t,n)=>t.has(e)||Td("Cannot "+n);var R=(e,t,n)=>(rl(e,t,"read from private field"),n?n.call(e):t.get(e)),K=(e,t,n)=>t.has(e)?Td("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),F=(e,t,n,r)=>(rl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ee=(e,t,n)=>(rl(e,t,"access private method"),n);var Uo=(e,t,n,r)=>({set _(i){F(e,t,i,n)},get _(){return R(e,t,r)}});function Mw(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function $m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Um={exports:{}},Ca={},Wm={exports:{}},U={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mo=Symbol.for("react.element"),Lw=Symbol.for("react.portal"),Dw=Symbol.for("react.fragment"),Nw=Symbol.for("react.strict_mode"),Ow=Symbol.for("react.profiler"),_w=Symbol.for("react.provider"),Iw=Symbol.for("react.context"),jw=Symbol.for("react.forward_ref"),Vw=Symbol.for("react.suspense"),Fw=Symbol.for("react.memo"),zw=Symbol.for("react.lazy"),kd=Symbol.iterator;function Bw(e){return e===null||typeof e!="object"?null:(e=kd&&e[kd]||e["@@iterator"],typeof e=="function"?e:null)}var Hm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Km=Object.assign,Gm={};function mi(e,t,n){this.props=e,this.context=t,this.refs=Gm,this.updater=n||Hm}mi.prototype.isReactComponent={};mi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};mi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qm(){}Qm.prototype=mi.prototype;function bc(e,t,n){this.props=e,this.context=t,this.refs=Gm,this.updater=n||Hm}var Rc=bc.prototype=new Qm;Rc.constructor=bc;Km(Rc,mi.prototype);Rc.isPureReactComponent=!0;var Ad=Array.isArray,Ym=Object.prototype.hasOwnProperty,Mc={current:null},Xm={key:!0,ref:!0,__self:!0,__source:!0};function qm(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Ym.call(t,r)&&!Xm.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,ae=A[V];if(0>>1;Vi(Ti,I))Gti(Gn,Ti)?(A[V]=Gn,A[Gt]=I,V=Gt):(A[V]=Ti,A[Kt]=I,V=Kt);else if(Gti(Gn,I))A[V]=Gn,A[Gt]=I,V=Gt;else break e}}return D}function i(A,D){var I=A.sortIndex-D.sortIndex;return I!==0?I:A.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,p=!1,y=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(A){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=A)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function S(A){if(v=!1,g(A),!y)if(n(l)!==null)y=!0,$(C);else{var D=n(u);D!==null&&Y(S,D.startTime-A)}}function C(A,D){y=!1,v&&(v=!1,m(k),k=-1),p=!0;var I=d;try{for(g(D),f=n(l);f!==null&&(!(f.expirationTime>D)||A&&!j());){var V=f.callback;if(typeof V=="function"){f.callback=null,d=f.priorityLevel;var ae=V(f.expirationTime<=D);D=e.unstable_now(),typeof ae=="function"?f.callback=ae:f===n(l)&&r(l),g(D)}else r(l);f=n(l)}if(f!==null)var Sr=!0;else{var Kt=n(u);Kt!==null&&Y(S,Kt.startTime-D),Sr=!1}return Sr}finally{f=null,d=I,p=!1}}var T=!1,E=null,k=-1,L=5,b=-1;function j(){return!(e.unstable_now()-bA||125V?(A.sortIndex=I,t(u,A),n(l)===null&&A===n(u)&&(v?(m(k),k=-1):v=!0,Y(S,I-V))):(A.sortIndex=ae,t(l,A),y||p||(y=!0,$(C))),A},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(A){var D=d;return function(){var I=d;d=D;try{return A.apply(this,arguments)}finally{d=I}}}})(ng);tg.exports=ng;var Zw=tg.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Jw=w,Ze=Zw;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,e1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rd={},Md={};function t1(e){return Jl.call(Md,e)?!0:Jl.call(Rd,e)?!1:e1.test(e)?Md[e]=!0:(Rd[e]=!0,!1)}function n1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function r1(e,t,n,r){if(t===null||typeof t>"u"||n1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pe[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Nc=/[\-:]([a-z])/g;function Oc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Nc,Oc);Pe[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Nc,Oc);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Nc,Oc);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function _c(e,t,n,r){var i=Pe.hasOwnProperty(t)?Pe[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{sl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vi(e):""}function i1(e){switch(e.tag){case 5:return Vi(e.type);case 16:return Vi("Lazy");case 13:return Vi("Suspense");case 19:return Vi("SuspenseList");case 0:case 2:case 15:return e=al(e.type,!1),e;case 11:return e=al(e.type.render,!1),e;case 1:return e=al(e.type,!0),e;default:return""}}function ru(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tr:return"Fragment";case Er:return"Portal";case eu:return"Profiler";case Ic:return"StrictMode";case tu:return"Suspense";case nu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case og:return(e.displayName||"Context")+".Consumer";case ig:return(e._context.displayName||"Context")+".Provider";case jc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vc:return t=e.displayName||null,t!==null?t:ru(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return ru(e(t))}catch{}}return null}function o1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ru(t);case 8:return t===Ic?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ag(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s1(e){var t=ag(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ko(e){e._valueTracker||(e._valueTracker=s1(e))}function lg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ag(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Os(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function iu(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Dd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ug(e,t){t=t.checked,t!=null&&_c(e,"checked",t,!1)}function ou(e,t){ug(e,t);var n=jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?su(e,t.type,n):t.hasOwnProperty("defaultValue")&&su(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function su(e,t,n){(t!=="number"||Os(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function Fr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ui={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},a1=["Webkit","ms","Moz","O"];Object.keys(Ui).forEach(function(e){a1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ui[t]=Ui[e]})});function hg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ui.hasOwnProperty(e)&&Ui[e]?(""+t).trim():t+"px"}function pg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=hg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var l1=se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uu(e,t){if(t){if(l1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function cu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fu=null;function Fc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var du=null,zr=null,Br=null;function Id(e){if(e=No(e)){if(typeof du!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Aa(t),du(e.stateNode,e.type,t))}}function mg(e){zr?Br?Br.push(e):Br=[e]:zr=e}function gg(){if(zr){var e=zr,t=Br;if(Br=zr=null,Id(e),t)for(e=0;e>>=0,e===0?32:31-(x1(e)/w1|0)|0}var Qo=64,Yo=4194304;function zi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=zi(a):(o&=s,o!==0&&(r=zi(o)))}else s=n&~i,s!==0?r=zi(s):o!==0&&(r=zi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function E1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Hi),Hd=" ",Kd=!1;function Ig(e,t){switch(e){case"keyup":return Z1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function eS(e,t){switch(e){case"compositionend":return jg(t);case"keypress":return t.which!==32?null:(Kd=!0,Hd);case"textInput":return e=t.data,e===Hd&&Kd?null:e;default:return null}}function tS(e,t){if(kr)return e==="compositionend"||!Gc&&Ig(e,t)?(e=Og(),ys=Wc=Tn=null,kr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xd(n)}}function Bg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $g(){for(var e=window,t=Os();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Os(e.document)}return t}function Qc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cS(e){var t=$g(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bg(n.ownerDocument.documentElement,n)){if(r!==null&&Qc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=qd(n,o);var s=qd(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ar=null,vu=null,Gi=null,xu=!1;function Zd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xu||Ar==null||Ar!==Os(r)||(r=Ar,"selectionStart"in r&&Qc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gi&&uo(Gi,r)||(Gi=r,r=Bs(vu,"onSelect"),0Mr||(e.current=Tu[Mr],Tu[Mr]=null,Mr--)}function q(e,t){Mr++,Tu[Mr]=e.current,e.current=t}var Vn={},Re=Wn(Vn),$e=Wn(!1),hr=Vn;function ri(e,t){var n=e.type.contextTypes;if(!n)return Vn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ue(e){return e=e.childContextTypes,e!=null}function Us(){te($e),te(Re)}function oh(e,t,n){if(Re.current!==Vn)throw Error(M(168));q(Re,t),q($e,n)}function qg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,o1(e)||"Unknown",i));return se({},n,r)}function Ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,hr=Re.current,q(Re,e),q($e,$e.current),!0}function sh(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=qg(e,t,hr),r.__reactInternalMemoizedMergedChildContext=e,te($e),te(Re),q(Re,e)):te($e),q($e,n)}var qt=null,ba=!1,Sl=!1;function Zg(e){qt===null?qt=[e]:qt.push(e)}function CS(e){ba=!0,Zg(e)}function Hn(){if(!Sl&&qt!==null){Sl=!0;var e=0,t=G;try{var n=qt;for(G=1;e>=s,i-=s,Jt=1<<32-wt(t)+i|n<k?(L=E,E=null):L=E.sibling;var b=d(m,E,g[k],S);if(b===null){E===null&&(E=L);break}e&&E&&b.alternate===null&&t(m,E),h=o(b,h,k),T===null?C=b:T.sibling=b,T=b,E=L}if(k===g.length)return n(m,E),ne&&Yn(m,k),C;if(E===null){for(;kk?(L=E,E=null):L=E.sibling;var j=d(m,E,b.value,S);if(j===null){E===null&&(E=L);break}e&&E&&j.alternate===null&&t(m,E),h=o(j,h,k),T===null?C=j:T.sibling=j,T=j,E=L}if(b.done)return n(m,E),ne&&Yn(m,k),C;if(E===null){for(;!b.done;k++,b=g.next())b=f(m,b.value,S),b!==null&&(h=o(b,h,k),T===null?C=b:T.sibling=b,T=b);return ne&&Yn(m,k),C}for(E=r(m,E);!b.done;k++,b=g.next())b=p(E,m,k,b.value,S),b!==null&&(e&&b.alternate!==null&&E.delete(b.key===null?k:b.key),h=o(b,h,k),T===null?C=b:T.sibling=b,T=b);return e&&E.forEach(function(_){return t(m,_)}),ne&&Yn(m,k),C}function x(m,h,g,S){if(typeof g=="object"&&g!==null&&g.type===Tr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ho:e:{for(var C=g.key,T=h;T!==null;){if(T.key===C){if(C=g.type,C===Tr){if(T.tag===7){n(m,T.sibling),h=i(T,g.props.children),h.return=m,m=h;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&uh(C)===T.type){n(m,T.sibling),h=i(T,g.props),h.ref=Di(m,T,g),h.return=m,m=h;break e}n(m,T);break}else t(m,T);T=T.sibling}g.type===Tr?(h=cr(g.props.children,m.mode,S,g.key),h.return=m,m=h):(S=Ts(g.type,g.key,g.props,null,m.mode,S),S.ref=Di(m,h,g),S.return=m,m=S)}return s(m);case Er:e:{for(T=g.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Rl(g,m.mode,S),h.return=m,m=h}return s(m);case gn:return T=g._init,x(m,h,T(g._payload),S)}if(Fi(g))return y(m,h,g,S);if(Ai(g))return v(m,h,g,S);ns(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=bl(g,m.mode,S),h.return=m,m=h),s(m)):n(m,h)}return x}var oi=ny(!0),ry=ny(!1),Gs=Wn(null),Qs=null,Nr=null,Zc=null;function Jc(){Zc=Nr=Qs=null}function ef(e){var t=Gs.current;te(Gs),e._currentValue=t}function bu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ur(e,t){Qs=e,Zc=Nr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Zc!==e)if(e={context:e,memoizedValue:t,next:null},Nr===null){if(Qs===null)throw Error(M(308));Nr=e,Qs.dependencies={lanes:0,firstContext:e}}else Nr=Nr.next=e;return t}var Jn=null;function tf(e){Jn===null?Jn=[e]:Jn.push(e)}function iy(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,tf(t)):(n.next=i.next,i.next=n),t.interleaved=n,on(e,r)}function on(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var yn=!1;function nf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,on(e,n)}return i=r.interleaved,i===null?(t.next=t,tf(r)):(t.next=i.next,i.next=t),r.interleaved=t,on(e,n)}function xs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bc(e,n)}}function ch(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ys(e,t,n,r){var i=e.updateQueue;yn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,c=u=l=null,a=o;do{var d=a.lane,p=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(d=t,p=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(p,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,d=typeof y=="function"?y.call(p,f,d):y,d==null)break e;f=se({},f,d);break e;case 2:yn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=f):c=c.next=p,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);gr|=s,e.lanes=s,e.memoizedState=f}}function fh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Pl.transition;Pl.transition={};try{e(!1),t()}finally{G=n,Pl.transition=r}}function Cy(){return ut().memoizedState}function kS(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Py(e))Ey(t,n);else if(n=iy(e,t,n,r),n!==null){var i=_e();St(n,e,r,i),Ty(n,t,r)}}function AS(e,t,n){var r=_n(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Py(e))Ey(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Pt(a,s)){var l=t.interleaved;l===null?(i.next=i,tf(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=iy(e,t,i,r),n!==null&&(i=_e(),St(n,e,r,i),Ty(n,t,r))}}function Py(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Ey(e,t){Qi=qs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ty(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bc(e,n)}}var Zs={readContext:lt,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},bS={readContext:lt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:hh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ss(4194308,4,yy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ss(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kS.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:dh,useDebugValue:ff,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=dh(!1),t=e[0];return e=TS.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=Mt();if(ne){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),ve===null)throw Error(M(349));mr&30||uy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,hh(fy.bind(null,r,o,e),[e]),r.flags|=2048,vo(9,cy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mt(),t=ve.identifierPrefix;if(ne){var n=en,r=Jt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=go++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[It]=t,e[ho]=r,_y(e,t,!1,!1),t.stateNode=e;e:{switch(s=cu(n,r),n){case"dialog":J("cancel",e),J("close",e),i=r;break;case"iframe":case"object":case"embed":J("load",e),i=r;break;case"video":case"audio":for(i=0;ili&&(t.flags|=128,r=!0,Ni(o,!1),t.lanes=4194304)}else{if(!r)if(e=Xs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ni(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ne)return ke(t),null}else 2*fe()-o.renderingStartTime>li&&n!==1073741824&&(t.flags|=128,r=!0,Ni(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=fe(),t.sibling=null,n=ie.current,q(ie,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return yf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function IS(e,t){switch(Xc(t),t.tag){case 1:return Ue(t.type)&&Us(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return si(),te($e),te(Re),sf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return of(t),null;case 13:if(te(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(ie),null;case 4:return si(),null;case 10:return ef(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var is=!1,be=!1,jS=typeof WeakSet=="function"?WeakSet:Set,N=null;function Or(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function ju(e,t,n){try{n()}catch(r){ue(e,t,r)}}var Eh=!1;function VS(e,t){if(wu=Fs,e=$g(),Qc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++c===r&&(l=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Su={focusedElem:e,selectionRange:n},Fs=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,x=y.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:ht(t.type,v),x);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(S){ue(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return y=Eh,Eh=!1,y}function Yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ju(t,n,o)}i=i.next}while(i!==r)}}function La(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vy(e){var t=e.alternate;t!==null&&(e.alternate=null,Vy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[ho],delete t[Eu],delete t[wS],delete t[SS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fy(e){return e.tag===5||e.tag===3||e.tag===4}function Th(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$s));else if(r!==4&&(e=e.child,e!==null))for(Fu(e,t,n),e=e.sibling;e!==null;)Fu(e,t,n),e=e.sibling}function zu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}var xe=null,yt=!1;function cn(e,t,n){for(n=n.child;n!==null;)zy(e,t,n),n=n.sibling}function zy(e,t,n){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Pa,n)}catch{}switch(n.tag){case 5:be||Or(n,t);case 6:var r=xe,i=yt;xe=null,cn(e,t,n),xe=r,yt=i,xe!==null&&(yt?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(yt?(e=xe,n=n.stateNode,e.nodeType===8?wl(e.parentNode,n):e.nodeType===1&&wl(e,n),ao(e)):wl(xe,n.stateNode));break;case 4:r=xe,i=yt,xe=n.stateNode.containerInfo,yt=!0,cn(e,t,n),xe=r,yt=i;break;case 0:case 11:case 14:case 15:if(!be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ju(n,t,s),i=i.next}while(i!==r)}cn(e,t,n);break;case 1:if(!be&&(Or(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(be=(r=be)||n.memoizedState!==null,cn(e,t,n),be=r):cn(e,t,n);break;default:cn(e,t,n)}}function kh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jS),t.forEach(function(r){var i=GS.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zS(r/1960))-r,10e?16:e,kn===null)var r=!1;else{if(e=kn,kn=null,ta=0,H&6)throw Error(M(331));var i=H;for(H|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lfe()-mf?ur(e,0):pf|=n),We(e,t)}function Qy(e,t){t===0&&(e.mode&1?(t=Yo,Yo<<=1,!(Yo&130023424)&&(Yo=4194304)):t=1);var n=_e();e=on(e,t),e!==null&&(Lo(e,t,n),We(e,n))}function KS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qy(e,n)}function GS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Qy(e,n)}var Yy;Yy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,OS(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ne&&t.flags&1048576&&Jg(t,Ks,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Cs(e,t),e=t.pendingProps;var i=ri(t,Re.current);Ur(t,n),i=lf(null,t,r,e,i,n);var o=uf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(o=!0,Ws(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,nf(t),i.updater=Ma,t.stateNode=i,i._reactInternals=t,Mu(t,r,e,n),t=Nu(null,t,r,!0,o,n)):(t.tag=0,ne&&o&&Yc(t),Le(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Cs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=YS(r),e=ht(r,e),i){case 0:t=Du(null,t,r,e,n);break e;case 1:t=Sh(null,t,r,e,n);break e;case 11:t=xh(null,t,r,e,n);break e;case 14:t=wh(null,t,r,ht(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Du(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Sh(e,t,r,i,n);case 3:e:{if(Dy(t),e===null)throw Error(M(387));r=t.pendingProps,o=t.memoizedState,i=o.element,oy(e,t),Ys(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ai(Error(M(423)),t),t=Ch(e,t,r,n,i);break e}else if(r!==i){i=ai(Error(M(424)),t),t=Ch(e,t,r,n,i);break e}else for(Ye=Dn(t.stateNode.containerInfo.firstChild),Xe=t,ne=!0,vt=null,n=ry(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ii(),r===i){t=sn(e,t,n);break e}Le(e,t,r,n)}t=t.child}return t;case 5:return sy(t),e===null&&Au(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Cu(r,i)?s=null:o!==null&&Cu(r,o)&&(t.flags|=32),Ly(e,t),Le(e,t,s,n),t.child;case 6:return e===null&&Au(t),null;case 13:return Ny(e,t,n);case 4:return rf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oi(t,null,r,n):Le(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),xh(e,t,r,i,n);case 7:return Le(e,t,t.pendingProps,n),t.child;case 8:return Le(e,t,t.pendingProps.children,n),t.child;case 12:return Le(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,q(Gs,r._currentValue),r._currentValue=s,o!==null)if(Pt(o.value,s)){if(o.children===i.children&&!$e.current){t=sn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=tn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),bu(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(M(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),bu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Le(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ur(t,n),i=lt(i),r=r(i),t.flags|=1,Le(e,t,r,n),t.child;case 14:return r=t.type,i=ht(r,t.pendingProps),i=ht(r.type,i),wh(e,t,r,i,n);case 15:return Ry(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Cs(e,t),t.tag=1,Ue(r)?(e=!0,Ws(t)):e=!1,Ur(t,n),ky(t,r,i),Mu(t,r,i,n),Nu(null,t,r,!0,e,n);case 19:return Oy(e,t,n);case 22:return My(e,t,n)}throw Error(M(156,t.tag))};function Xy(e,t){return Pg(e,t)}function QS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function it(e,t,n,r){return new QS(e,t,n,r)}function xf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YS(e){if(typeof e=="function")return xf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jc)return 11;if(e===Vc)return 14}return 2}function In(e,t){var n=e.alternate;return n===null?(n=it(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ts(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")xf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Tr:return cr(n.children,i,o,t);case Ic:s=8,i|=8;break;case eu:return e=it(12,n,t,i|2),e.elementType=eu,e.lanes=o,e;case tu:return e=it(13,n,t,i),e.elementType=tu,e.lanes=o,e;case nu:return e=it(19,n,t,i),e.elementType=nu,e.lanes=o,e;case sg:return Na(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ig:s=10;break e;case og:s=9;break e;case jc:s=11;break e;case Vc:s=14;break e;case gn:s=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=it(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function cr(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Na(e,t,n,r){return e=it(22,e,r,t),e.elementType=sg,e.lanes=n,e.stateNode={isHidden:!1},e}function bl(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function Rl(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XS(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ul(0),this.expirationTimes=ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function wf(e,t,n,r,i,o,s,a,l){return e=new XS(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=it(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nf(o),e}function qS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ev)}catch(e){console.error(e)}}ev(),eg.exports=Je;var Va=eg.exports;const RL=$m(Va);var tv,Oh=Va;tv=Oh.createRoot,Oh.hydrateRoot;const nC="modulepreload",rC=function(e){return"/"+e},_h={},Wt=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=rC(l),l in _h)return;_h[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":nC,u||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((d,p)=>{f.addEventListener("load",d),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var Fa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},za=typeof window>"u"||"Deno"in globalThis;function pt(){}function iC(e,t){return typeof e=="function"?e(t):e}function oC(e){return typeof e=="number"&&e>=0&&e!==1/0}function sC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Hu(e,t){return typeof e=="function"?e(t):e}function aC(e,t){return typeof e=="function"?e(t):e}function Ih(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Ef(s,t.options))return!1}else if(!So(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function jh(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(wo(t.options.mutationKey)!==wo(o))return!1}else if(!So(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ef(e,t){return((t==null?void 0:t.queryKeyHashFn)||wo)(e)}function wo(e){return JSON.stringify(e,(t,n)=>Ku(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function So(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>So(e[n],t[n])):!1}function nv(e,t){if(e===t)return e;const n=Vh(e)&&Vh(t);if(n||Ku(e)&&Ku(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c{setTimeout(t,e)})}function uC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?nv(e,t):t}function cC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function fC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Tf=Symbol();function rv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Tf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var rr,wn,Qr,Om,dC=(Om=class extends Fa{constructor(){super();K(this,rr);K(this,wn);K(this,Qr);F(this,Qr,t=>{if(!za&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,wn)||this.setEventListener(R(this,Qr))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,wn))==null||t.call(this),F(this,wn,void 0))}setEventListener(t){var n;F(this,Qr,t),(n=R(this,wn))==null||n.call(this),F(this,wn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,rr)!==t&&(F(this,rr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,rr)=="boolean"?R(this,rr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rr=new WeakMap,wn=new WeakMap,Qr=new WeakMap,Om),iv=new dC,Yr,Sn,Xr,_m,hC=(_m=class extends Fa{constructor(){super();K(this,Yr,!0);K(this,Sn);K(this,Xr);F(this,Xr,t=>{if(!za&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,Sn)||this.setEventListener(R(this,Xr))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Sn))==null||t.call(this),F(this,Sn,void 0))}setEventListener(t){var n;F(this,Xr,t),(n=R(this,Sn))==null||n.call(this),F(this,Sn,t(this.setOnline.bind(this)))}setOnline(t){R(this,Yr)!==t&&(F(this,Yr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,Yr)}},Yr=new WeakMap,Sn=new WeakMap,Xr=new WeakMap,_m),ia=new hC;function pC(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function mC(e){return Math.min(1e3*2**e,3e4)}function ov(e){return(e??"online")==="online"?ia.isOnline():!0}var sv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ml(e){return e instanceof sv}function av(e){let t=!1,n=0,r=!1,i;const o=pC(),s=v=>{var x;r||(d(new sv(v)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>iv.isFocused()&&(e.networkMode==="always"||ia.isOnline())&&e.canRun(),c=()=>ov(e.networkMode)&&e.canRun(),f=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),i==null||i(),o.resolve(v))},d=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),i==null||i(),o.reject(v))},p=()=>new Promise(v=>{var x;i=m=>{(r||u())&&v(m)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),y=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(f).catch(m=>{var T;if(r)return;const h=e.retry??(za?0:3),g=e.retryDelay??mC,S=typeof g=="function"?g(n,m):g,C=h===!0||typeof h=="number"&&nu()?void 0:p()).then(()=>{t?d(m):y()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?y():p().then(y),o)}}var gC=e=>setTimeout(e,0);function yC(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=gC;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var De=yC(),ir,Im,lv=(Im=class{constructor(){K(this,ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oC(this.gcTime)&&F(this,ir,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(za?1/0:5*60*1e3))}clearGcTimeout(){R(this,ir)&&(clearTimeout(R(this,ir)),F(this,ir,void 0))}},ir=new WeakMap,Im),qr,or,tt,sr,Ae,bo,ar,mt,Yt,jm,vC=(jm=class extends lv{constructor(t){super();K(this,mt);K(this,qr);K(this,or);K(this,tt);K(this,sr);K(this,Ae);K(this,bo);K(this,ar);F(this,ar,!1),F(this,bo,t.defaultOptions),this.setOptions(t.options),this.observers=[],F(this,sr,t.client),F(this,tt,R(this,sr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,F(this,qr,wC(this.options)),this.state=t.state??R(this,qr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,Ae))==null?void 0:t.promise}setOptions(t){this.options={...R(this,bo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,tt).remove(this)}setData(t,n){const r=uC(this.state.data,t,this.options);return Ee(this,mt,Yt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ee(this,mt,Yt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=R(this,Ae))==null?void 0:r.promise;return(i=R(this,Ae))==null||i.cancel(t),n?n.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,qr))}isActive(){return this.observers.some(t=>aC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Hu(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!sC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,Ae)&&(R(this,ar)?R(this,Ae).cancel({revert:!0}):R(this,Ae).cancelRetry()),this.scheduleGc()),R(this,tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,mt,Yt).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,Ae))return R(this,Ae).continueRetry(),R(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(F(this,ar,!0),r.signal)})},o=()=>{const d=rv(this.options,n),y=(()=>{const v={client:R(this,sr),queryKey:this.queryKey,meta:this.meta};return i(v),v})();return F(this,ar,!1),this.options.persister?this.options.persister(d,y,this):d(y)},a=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,sr),state:this.state,fetchFn:o};return i(d),d})();(u=this.options.behavior)==null||u.onFetch(a,this),F(this,or,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Ee(this,mt,Yt).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=d=>{var p,y,v,x;Ml(d)&&d.silent||Ee(this,mt,Yt).call(this,{type:"error",error:d}),Ml(d)||((y=(p=R(this,tt).config).onError)==null||y.call(p,d,this),(x=(v=R(this,tt).config).onSettled)==null||x.call(v,this.state.data,d,this)),this.scheduleGc()};return F(this,Ae,av({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var p,y,v,x;if(d===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(m){l(m);return}(y=(p=R(this,tt).config).onSuccess)==null||y.call(p,d,this),(x=(v=R(this,tt).config).onSettled)==null||x.call(v,d,this.state.error,this),this.scheduleGc()},onError:l,onFail:(d,p)=>{Ee(this,mt,Yt).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{Ee(this,mt,Yt).call(this,{type:"pause"})},onContinue:()=>{Ee(this,mt,Yt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),R(this,Ae).start()}},qr=new WeakMap,or=new WeakMap,tt=new WeakMap,sr=new WeakMap,Ae=new WeakMap,bo=new WeakMap,ar=new WeakMap,mt=new WeakSet,Yt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...xC(r.data,this.options),fetchMeta:t.meta??null};case"success":return F(this,or,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Ml(i)&&i.revert&&R(this,or)?{...R(this,or),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),De.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,tt).notify({query:this,type:"updated",action:t})})},jm);function xC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ov(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Dt,Vm,SC=(Vm=class extends Fa{constructor(t={}){super();K(this,Dt);this.config=t,F(this,Dt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Ef(i,n);let s=this.get(o);return s||(s=new vC({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){R(this,Dt).has(t.queryHash)||(R(this,Dt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,Dt).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,Dt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){De.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Dt).get(t)}getAll(){return[...R(this,Dt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ih(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ih(t,r)):n}notify(t){De.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){De.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){De.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dt=new WeakMap,Vm),Nt,Me,lr,Ot,hn,Fm,CC=(Fm=class extends lv{constructor(t){super();K(this,Ot);K(this,Nt);K(this,Me);K(this,lr);this.mutationId=t.mutationId,F(this,Me,t.mutationCache),F(this,Nt,[]),this.state=t.state||PC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,Nt).includes(t)||(R(this,Nt).push(t),this.clearGcTimeout(),R(this,Me).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){F(this,Nt,R(this,Nt).filter(n=>n!==t)),this.scheduleGc(),R(this,Me).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Nt).length||(this.state.status==="pending"?this.scheduleGc():R(this,Me).remove(this))}continue(){var t;return((t=R(this,lr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,l,u,c,f,d,p,y,v,x,m,h,g,S,C,T,E,k;const n=()=>{Ee(this,Ot,hn).call(this,{type:"continue"})};F(this,lr,av({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,b)=>{Ee(this,Ot,hn).call(this,{type:"failed",failureCount:L,error:b})},onPause:()=>{Ee(this,Ot,hn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,Me).canRun(this)}));const r=this.state.status==="pending",i=!R(this,lr).canStart();try{if(r)n();else{Ee(this,Ot,hn).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(o=R(this,Me).config).onMutate)==null?void 0:s.call(o,t,this));const b=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));b!==this.state.context&&Ee(this,Ot,hn).call(this,{type:"pending",context:b,variables:t,isPaused:i})}const L=await R(this,lr).start();return await((c=(u=R(this,Me).config).onSuccess)==null?void 0:c.call(u,L,t,this.state.context,this)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,L,t,this.state.context)),await((y=(p=R(this,Me).config).onSettled)==null?void 0:y.call(p,L,null,this.state.variables,this.state.context,this)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,L,null,t,this.state.context)),Ee(this,Ot,hn).call(this,{type:"success",data:L}),L}catch(L){try{throw await((h=(m=R(this,Me).config).onError)==null?void 0:h.call(m,L,t,this.state.context,this)),await((S=(g=this.options).onError)==null?void 0:S.call(g,L,t,this.state.context)),await((T=(C=R(this,Me).config).onSettled)==null?void 0:T.call(C,void 0,L,this.state.variables,this.state.context,this)),await((k=(E=this.options).onSettled)==null?void 0:k.call(E,void 0,L,t,this.state.context)),L}finally{Ee(this,Ot,hn).call(this,{type:"error",error:L})}}finally{R(this,Me).runNext(this)}}},Nt=new WeakMap,Me=new WeakMap,lr=new WeakMap,Ot=new WeakSet,hn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),De.batch(()=>{R(this,Nt).forEach(r=>{r.onMutationUpdate(t)}),R(this,Me).notify({mutation:this,type:"updated",action:t})})},Fm);function PC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Zt,gt,Ro,zm,EC=(zm=class extends Fa{constructor(t={}){super();K(this,Zt);K(this,gt);K(this,Ro);this.config=t,F(this,Zt,new Set),F(this,gt,new Map),F(this,Ro,0)}build(t,n,r){const i=new CC({mutationCache:this,mutationId:++Uo(this,Ro)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){R(this,Zt).add(t);const n=as(t);if(typeof n=="string"){const r=R(this,gt).get(n);r?r.push(t):R(this,gt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,Zt).delete(t)){const n=as(t);if(typeof n=="string"){const r=R(this,gt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&R(this,gt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=as(t);if(typeof n=="string"){const r=R(this,gt).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=as(t);if(typeof n=="string"){const i=(r=R(this,gt).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){De.batch(()=>{R(this,Zt).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,Zt).clear(),R(this,gt).clear()})}getAll(){return Array.from(R(this,Zt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jh(n,r))}findAll(t={}){return this.getAll().filter(n=>jh(t,n))}notify(t){De.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return De.batch(()=>Promise.all(t.map(n=>n.continue().catch(pt))))}},Zt=new WeakMap,gt=new WeakMap,Ro=new WeakMap,zm);function as(e){var t;return(t=e.options.scope)==null?void 0:t.id}function zh(e){return{onFetch:(t,n)=>{var c,f,d,p,y;const r=t.options,i=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let v=!1;const x=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},m=rv(t.options,t.fetchOptions),h=async(g,S,C)=>{if(v)return Promise.reject();if(S==null&&g.pages.length)return Promise.resolve(g);const E=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return x(j),j})(),k=await m(E),{maxPages:L}=t.options,b=C?fC:cC;return{pages:b(g.pages,k,L),pageParams:b(g.pageParams,S,L)}};if(i&&o.length){const g=i==="backward",S=g?TC:Bh,C={pages:o,pageParams:s},T=S(r,C);a=await h(C,T,g)}else{const g=e??o.length;do{const S=l===0?s[0]??r.initialPageParam:Bh(r,a);if(l>0&&S==null)break;a=await h(a,S),l++}while(l{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Bh(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function TC(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var le,Cn,Pn,Zr,Jr,En,ei,ti,Bm,kC=(Bm=class{constructor(e={}){K(this,le);K(this,Cn);K(this,Pn);K(this,Zr);K(this,Jr);K(this,En);K(this,ei);K(this,ti);F(this,le,e.queryCache||new SC),F(this,Cn,e.mutationCache||new EC),F(this,Pn,e.defaultOptions||{}),F(this,Zr,new Map),F(this,Jr,new Map),F(this,En,0)}mount(){Uo(this,En)._++,R(this,En)===1&&(F(this,ei,iv.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,le).onFocus())})),F(this,ti,ia.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,le).onOnline())})))}unmount(){var e,t;Uo(this,En)._--,R(this,En)===0&&((e=R(this,ei))==null||e.call(this),F(this,ei,void 0),(t=R(this,ti))==null||t.call(this),F(this,ti,void 0))}isFetching(e){return R(this,le).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Cn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,le).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,le).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Hu(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,le).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=R(this,le).get(r.queryHash),o=i==null?void 0:i.state.data,s=iC(t,o);if(s!==void 0)return R(this,le).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return De.batch(()=>R(this,le).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,le).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,le);De.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,le);return De.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=De.batch(()=>R(this,le).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(pt).catch(pt)}invalidateQueries(e,t={}){return De.batch(()=>(R(this,le).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=De.batch(()=>R(this,le).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(pt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,le).build(this,t);return n.isStaleByTime(Hu(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pt).catch(pt)}fetchInfiniteQuery(e){return e.behavior=zh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pt).catch(pt)}ensureInfiniteQueryData(e){return e.behavior=zh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ia.isOnline()?R(this,Cn).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,le)}getMutationCache(){return R(this,Cn)}getDefaultOptions(){return R(this,Pn)}setDefaultOptions(e){F(this,Pn,e)}setQueryDefaults(e,t){R(this,Zr).set(wo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,Zr).values()],n={};return t.forEach(r=>{So(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,Jr).set(wo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,Jr).values()],n={};return t.forEach(r=>{So(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Pn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ef(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Tf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Pn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,le).clear(),R(this,Cn).clear()}},le=new WeakMap,Cn=new WeakMap,Pn=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,En=new WeakMap,ei=new WeakMap,ti=new WeakMap,Bm),AC=w.createContext(void 0),bC=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),P.jsx(AC.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function uv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function MC(){return Math.random().toString(36).substr(2,8)}function Uh(e,t){return{usr:e.state,key:e.key,idx:t}}function Gu(e,t,n,r){return n===void 0&&(n=null),oa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ba(t):t,{state:n,key:t&&t.key||r||MC()})}function cv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ba(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function LC(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=An.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(oa({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=An.Pop;let x=c(),m=x==null?null:x-u;u=x,l&&l({action:a,location:v.location,delta:m})}function d(x,m){a=An.Push;let h=Gu(v.location,x,m);u=c()+1;let g=Uh(h,u),S=v.createHref(h);try{s.pushState(g,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}o&&l&&l({action:a,location:v.location,delta:1})}function p(x,m){a=An.Replace;let h=Gu(v.location,x,m);u=c();let g=Uh(h,u),S=v.createHref(h);s.replaceState(g,"",S),o&&l&&l({action:a,location:v.location,delta:0})}function y(x){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof x=="string"?x:cv(x);return h=h.replace(/ $/,"%20"),Ke(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let v={get action(){return a},get location(){return e(i,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener($h,f),l=x,()=>{i.removeEventListener($h,f),l=null}},createHref(x){return t(i,x)},createURL:y,encodeLocation(x){let m=y(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:p,go(x){return s.go(x)}};return v}var Wh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wh||(Wh={}));function DC(e,t,n){return n===void 0&&(n="/"),NC(e,t,n,!1)}function NC(e,t,n,r){let i=typeof t=="string"?Ba(t):t,o=hv(i.pathname||"/",n);if(o==null)return null;let s=fv(e);OC(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(Ke(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Hr([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Ke(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),fv(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:BC(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of dv(o.path))i(o,s,l)}),t}function dv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=dv(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function OC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$C(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _C=/^:[\w-]+$/,IC=3,jC=2,VC=1,FC=10,zC=-2,Hh=e=>e==="*";function BC(e,t){let n=e.split("/"),r=n.length;return n.some(Hh)&&(r+=zC),t&&(r+=jC),n.filter(i=>!Hh(i)).reduce((i,o)=>i+(_C.test(o)?IC:o===""?VC:FC),r)}function $C(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function UC(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:d,isOptional:p}=c;if(d==="*"){let v=a[f]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const y=a[f];return p&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function WC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),uv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function HC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return uv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hv(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Hr=e=>e.join("/").replace(/\/\/+/g,"/"),KC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function GC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pv=["post","put","patch","delete"];new Set(pv);const QC=["get",...pv];new Set(QC);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},x,{params:Object.assign({},a,x.params),pathname:Hr([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Hr([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?w.createElement($a.Provider,{value:{location:sa({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:An.Pop}},v):v}function JC(){let e=aP(),t=GC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const eP=w.createElement(JC,null);class tP extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(Ua.Provider,{value:this.props.routeContext},w.createElement(gv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nP(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(YC);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Ua.Provider,{value:t},r)}function rP(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||Ke(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,d)=>{let p,y=!1,v=null,x=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||eP,l&&(u<0&&d===0?(y=!0,x=null):u===d&&(y=!0,x=f.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,d+1)),h=()=>{let g;return p?g=v:y?g=x:f.route.Component?g=w.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=c,w.createElement(nP,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:g})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?w.createElement(tP,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Qu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qu||{});function iP(e){let t=w.useContext(XC);return t||Ke(!1),t}function oP(e){let t=w.useContext(Ua);return t||Ke(!1),t}function sP(e){let t=oP(),n=t.matches[t.matches.length-1];return n.route.id||Ke(!1),n.route.id}function aP(){var e;let t=w.useContext(gv),n=iP(Qu.UseRouteError),r=sP(Qu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function lP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Yu(e){Ke(!1)}function uP(e){let{basename:t="/",children:n=null,location:r,navigationType:i=An.Pop,navigator:o,static:s=!1,future:a}=e;kf()&&Ke(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:o,static:s,future:sa({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Ba(r));let{pathname:c="/",search:f="",hash:d="",state:p=null,key:y="default"}=r,v=w.useMemo(()=>{let x=hv(c,l);return x==null?null:{location:{pathname:x,search:f,hash:d,state:p,key:y},navigationType:i}},[l,c,f,d,p,y,i]);return v==null?null:w.createElement(mv.Provider,{value:u},w.createElement($a.Provider,{children:n,value:v}))}function cP(e){let{children:t,location:n}=e;return qC(Xu(t),n)}new Promise(()=>{});function Xu(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let o=[...t,i];if(r.type===w.Fragment){n.push.apply(n,Xu(r.props.children,o));return}r.type!==Yu&&Ke(!1),!r.props.index||!r.props.children||Ke(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Xu(r.props.children,o)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const fP="6";try{window.__reactRouterVersion=fP}catch{}const dP="startTransition",Gh=Dc[dP];function hP(e){let{basename:t,children:n,future:r,window:i}=e,o=w.useRef();o.current==null&&(o.current=RC({window:i,v5Compat:!0}));let s=o.current,[a,l]=w.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=w.useCallback(f=>{u&&Gh?Gh(()=>l(f)):l(f)},[l,u]);return w.useLayoutEffect(()=>s.listen(c),[s,c]),w.useEffect(()=>lP(r),[r]),w.createElement(uP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}var Qh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qh||(Qh={}));var Yh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Yh||(Yh={}));function xt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Xh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vv(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Xh(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i{var m;const{scope:d,children:p,...y}=f,v=((m=d==null?void 0:d[e])==null?void 0:m[l])||a,x=w.useMemo(()=>y,Object.values(y));return P.jsx(v.Provider,{value:x,children:p})};u.displayName=o+"Provider";function c(f,d){var v;const p=((v=d==null?void 0:d[e])==null?void 0:v[l])||a,y=w.useContext(p);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,c]}const i=()=>{const o=n.map(s=>w.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,pP(i,...t)]}function pP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function aa(e){const t=gP(e),n=w.forwardRef((r,i)=>{const{children:o,...s}=r,a=w.Children.toArray(o),l=a.find(vP);if(l){const u=l.props.children,c=a.map(f=>f===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:f);return P.jsx(t,{...s,ref:i,children:w.isValidElement(u)?w.cloneElement(u,void 0,c):null})}return P.jsx(t,{...s,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var mP=aa("Slot");function gP(e){const t=w.forwardRef((n,r)=>{const{children:i,...o}=n;if(w.isValidElement(i)){const s=wP(i),a=xP(o,i.props);return i.type!==w.Fragment&&(a.ref=r?vv(r,s):s),w.cloneElement(i,a)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xv=Symbol("radix.slottable");function yP(e){const t=({children:n})=>P.jsx(P.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=xv,t}function vP(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xv}function xP(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const l=o(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function wP(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var SP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ve=SP.reduce((e,t)=>{const n=aa(`Primitive.${t}`),r=w.forwardRef((i,o)=>{const{asChild:s,...a}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function CP(e,t){e&&Va.flushSync(()=>e.dispatchEvent(t))}function _o(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function PP(e,t=globalThis==null?void 0:globalThis.document){const n=_o(e);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var EP="DismissableLayer",qu="dismissableLayer.update",TP="dismissableLayer.pointerDownOutside",kP="dismissableLayer.focusOutside",qh,wv=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Af=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,u=w.useContext(wv),[c,f]=w.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=w.useState({}),y=Et(t,E=>f(E)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(x),h=c?v.indexOf(c):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,S=h>=m,C=bP(E=>{const k=E.target,L=[...u.branches].some(b=>b.contains(k));!S||L||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},d),T=RP(E=>{const k=E.target;[...u.branches].some(b=>b.contains(k))||(o==null||o(E),s==null||s(E),E.defaultPrevented||a==null||a())},d);return PP(E=>{h===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},d),w.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qh=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Zh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=qh)}},[c,d,n,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Zh())},[c,u]),w.useEffect(()=>{const E=()=>p({});return document.addEventListener(qu,E),()=>document.removeEventListener(qu,E)},[]),P.jsx(Ve.div,{...l,ref:y,style:{pointerEvents:g?S?"auto":"none":void 0,...e.style},onFocusCapture:xt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:xt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:xt(e.onPointerDownCapture,C.onPointerDownCapture)})});Af.displayName=EP;var AP="DismissableLayerBranch",Sv=w.forwardRef((e,t)=>{const n=w.useContext(wv),r=w.useRef(null),i=Et(t,r);return w.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),P.jsx(Ve.div,{...e,ref:i})});Sv.displayName=AP;function bP(e,t=globalThis==null?void 0:globalThis.document){const n=_o(e),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Cv(TP,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function RP(e,t=globalThis==null?void 0:globalThis.document){const n=_o(e),r=w.useRef(!1);return w.useEffect(()=>{const i=o=>{o.target&&!r.current&&Cv(kP,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zh(){const e=new CustomEvent(qu);document.dispatchEvent(e)}function Cv(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?CP(i,o):i.dispatchEvent(o)}var ML=Af,LL=Sv,Tt=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},MP=Dc[" useId ".trim().toString()]||(()=>{}),LP=0;function Pv(e){const[t,n]=w.useState(MP());return Tt(()=>{n(r=>r??String(LP++))},[e]),t?`radix-${t}`:""}const DP=["top","right","bottom","left"],Fn=Math.min,Qe=Math.max,la=Math.round,ls=Math.floor,zt=e=>({x:e,y:e}),NP={left:"right",right:"left",bottom:"top",top:"bottom"},OP={start:"end",end:"start"};function Zu(e,t,n){return Qe(e,Fn(t,n))}function an(e,t){return typeof e=="function"?e(t):e}function ln(e){return e.split("-")[0]}function xi(e){return e.split("-")[1]}function bf(e){return e==="x"?"y":"x"}function Rf(e){return e==="y"?"height":"width"}const _P=new Set(["top","bottom"]);function jt(e){return _P.has(ln(e))?"y":"x"}function Mf(e){return bf(jt(e))}function IP(e,t,n){n===void 0&&(n=!1);const r=xi(e),i=Mf(e),o=Rf(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ua(s)),[s,ua(s)]}function jP(e){const t=ua(e);return[Ju(e),t,Ju(t)]}function Ju(e){return e.replace(/start|end/g,t=>OP[t])}const Jh=["left","right"],ep=["right","left"],VP=["top","bottom"],FP=["bottom","top"];function zP(e,t,n){switch(e){case"top":case"bottom":return n?t?ep:Jh:t?Jh:ep;case"left":case"right":return t?VP:FP;default:return[]}}function BP(e,t,n,r){const i=xi(e);let o=zP(ln(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Ju)))),o}function ua(e){return e.replace(/left|right|bottom|top/g,t=>NP[t])}function $P(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ev(e){return typeof e!="number"?$P(e):{top:e,right:e,bottom:e,left:e}}function ca(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function tp(e,t,n){let{reference:r,floating:i}=e;const o=jt(t),s=Mf(t),a=Rf(s),l=ln(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(xi(t)){case"start":p[s]-=d*(n&&u?-1:1);break;case"end":p[s]+=d*(n&&u?-1:1);break}return p}const UP=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=tp(u,r,l),d=r,p={},y=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=an(e,t)||{};if(u==null)return{};const f=Ev(c),d={x:n,y:r},p=Mf(i),y=Rf(p),v=await s.getDimensions(u),x=p==="y",m=x?"top":"left",h=x?"bottom":"right",g=x?"clientHeight":"clientWidth",S=o.reference[y]+o.reference[p]-d[p]-o.floating[y],C=d[p]-o.reference[p],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=T?T[g]:0;(!E||!await(s.isElement==null?void 0:s.isElement(T)))&&(E=a.floating[g]||o.floating[y]);const k=S/2-C/2,L=E/2-v[y]/2-1,b=Fn(f[m],L),j=Fn(f[h],L),_=b,W=E-v[y]-j,B=E/2-v[y]/2+k,Q=Zu(_,B,W),$=!l.arrow&&xi(i)!=null&&B!==Q&&o.reference[y]/2-(B<_?b:j)-v[y]/2<0,Y=$?B<_?B-_:B-W:0;return{[p]:d[p]+Y,data:{[p]:Q,centerOffset:B-Q-Y,...$&&{alignmentOffset:Y}},reset:$}}}),HP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...x}=an(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const m=ln(i),h=jt(a),g=ln(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(g||!v?[ua(a)]:jP(a)),T=y!=="none";!d&&T&&C.push(...BP(a,v,y,S));const E=[a,...C],k=await Co(t,x),L=[];let b=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&L.push(k[m]),f){const B=IP(i,s,S);L.push(k[B[0]],k[B[1]])}if(b=[...b,{placement:i,overflows:L}],!L.every(B=>B<=0)){var j,_;const B=(((j=o.flip)==null?void 0:j.index)||0)+1,Q=E[B];if(Q&&(!(f==="alignment"?h!==jt(Q):!1)||b.every(A=>A.overflows[0]>0&&jt(A.placement)===h)))return{data:{index:B,overflows:b},reset:{placement:Q}};let $=(_=b.filter(Y=>Y.overflows[0]<=0).sort((Y,A)=>Y.overflows[1]-A.overflows[1])[0])==null?void 0:_.placement;if(!$)switch(p){case"bestFit":{var W;const Y=(W=b.filter(A=>{if(T){const D=jt(A.placement);return D===h||D==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(D=>D>0).reduce((D,I)=>D+I,0)]).sort((A,D)=>A[1]-D[1])[0])==null?void 0:W[0];Y&&($=Y);break}case"initialPlacement":$=a;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function np(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rp(e){return DP.some(t=>e[t]>=0)}const KP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=an(e,t);switch(r){case"referenceHidden":{const o=await Co(t,{...i,elementContext:"reference"}),s=np(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:rp(s)}}}case"escaped":{const o=await Co(t,{...i,altBoundary:!0}),s=np(o,n.floating);return{data:{escapedOffsets:s,escaped:rp(s)}}}default:return{}}}}},Tv=new Set(["left","top"]);async function GP(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ln(n),a=xi(n),l=jt(n)==="y",u=Tv.has(s)?-1:1,c=o&&l?-1:1,f=an(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(p=a==="end"?y*-1:y),l?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const QP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await GP(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},YP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:x=>{let{x:m,y:h}=x;return{x:m,y:h}}},...l}=an(e,t),u={x:n,y:r},c=await Co(t,l),f=jt(ln(i)),d=bf(f);let p=u[d],y=u[f];if(o){const x=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=p+c[x],g=p-c[m];p=Zu(h,p,g)}if(s){const x=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=y+c[x],g=y-c[m];y=Zu(h,y,g)}const v=a.fn({...t,[d]:p,[f]:y});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:o,[f]:s}}}}}},XP=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=an(e,t),c={x:n,y:r},f=jt(i),d=bf(f);let p=c[d],y=c[f];const v=an(a,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const g=d==="y"?"height":"width",S=o.reference[d]-o.floating[g]+x.mainAxis,C=o.reference[d]+o.reference[g]-x.mainAxis;pC&&(p=C)}if(u){var m,h;const g=d==="y"?"width":"height",S=Tv.has(ln(i)),C=o.reference[f]-o.floating[g]+(S&&((m=s.offset)==null?void 0:m[f])||0)+(S?0:x.crossAxis),T=o.reference[f]+o.reference[g]+(S?0:((h=s.offset)==null?void 0:h[f])||0)-(S?x.crossAxis:0);yT&&(y=T)}return{[d]:p,[f]:y}}}},qP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=an(e,t),c=await Co(t,u),f=ln(i),d=xi(i),p=jt(i)==="y",{width:y,height:v}=o.floating;let x,m;f==="top"||f==="bottom"?(x=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,x=d==="end"?"top":"bottom");const h=v-c.top-c.bottom,g=y-c.left-c.right,S=Fn(v-c[x],h),C=Fn(y-c[m],g),T=!t.middlewareData.shift;let E=S,k=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=h),T&&!d){const b=Qe(c.left,0),j=Qe(c.right,0),_=Qe(c.top,0),W=Qe(c.bottom,0);p?k=y-2*(b!==0||j!==0?b+j:Qe(c.left,c.right)):E=v-2*(_!==0||W!==0?_+W:Qe(c.top,c.bottom))}await l({...t,availableWidth:k,availableHeight:E});const L=await s.getDimensions(a.floating);return y!==L.width||v!==L.height?{reset:{rects:!0}}:{}}}};function Wa(){return typeof window<"u"}function wi(e){return kv(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ht(e){var t;return(t=(kv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kv(e){return Wa()?e instanceof Node||e instanceof qe(e).Node:!1}function kt(e){return Wa()?e instanceof Element||e instanceof qe(e).Element:!1}function $t(e){return Wa()?e instanceof HTMLElement||e instanceof qe(e).HTMLElement:!1}function ip(e){return!Wa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot}const ZP=new Set(["inline","contents"]);function Io(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ZP.has(i)}const JP=new Set(["table","td","th"]);function eE(e){return JP.has(wi(e))}const tE=[":popover-open",":modal"];function Ha(e){return tE.some(t=>{try{return e.matches(t)}catch{return!1}})}const nE=["transform","translate","scale","rotate","perspective"],rE=["transform","translate","scale","rotate","perspective","filter"],iE=["paint","layout","strict","content"];function Lf(e){const t=Df(),n=kt(e)?At(e):e;return nE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||rE.some(r=>(n.willChange||"").includes(r))||iE.some(r=>(n.contain||"").includes(r))}function oE(e){let t=zn(e);for(;$t(t)&&!ui(t);){if(Lf(t))return t;if(Ha(t))return null;t=zn(t)}return null}function Df(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sE=new Set(["html","body","#document"]);function ui(e){return sE.has(wi(e))}function At(e){return qe(e).getComputedStyle(e)}function Ka(e){return kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zn(e){if(wi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ip(e)&&e.host||Ht(e);return ip(t)?t.host:t}function Av(e){const t=zn(e);return ui(t)?e.ownerDocument?e.ownerDocument.body:e.body:$t(t)&&Io(t)?t:Av(t)}function Po(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Av(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=qe(i);if(o){const a=ec(s);return t.concat(s,s.visualViewport||[],Io(i)?i:[],a&&n?Po(a):[])}return t.concat(i,Po(i,[],n))}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bv(e){const t=At(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$t(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=la(n)!==o||la(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Nf(e){return kt(e)?e:e.contextElement}function Kr(e){const t=Nf(e);if(!$t(t))return zt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=bv(t);let s=(o?la(n.width):n.width)/r,a=(o?la(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const aE=zt(0);function Rv(e){const t=qe(e);return!Df()||!t.visualViewport?aE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qe(e)?!1:t}function vr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Nf(e);let s=zt(1);t&&(r?kt(r)&&(s=Kr(r)):s=Kr(e));const a=lE(o,n,r)?Rv(o):zt(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=qe(o),p=r&&kt(r)?qe(r):r;let y=d,v=ec(y);for(;v&&r&&p!==y;){const x=Kr(v),m=v.getBoundingClientRect(),h=At(v),g=m.left+(v.clientLeft+parseFloat(h.paddingLeft))*x.x,S=m.top+(v.clientTop+parseFloat(h.paddingTop))*x.y;l*=x.x,u*=x.y,c*=x.x,f*=x.y,l+=g,u+=S,y=qe(v),v=ec(y)}}return ca({width:c,height:f,x:l,y:u})}function Of(e,t){const n=Ka(e).scrollLeft;return t?t.left+n:vr(Ht(e)).left+n}function Mv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Of(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function uE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Ht(r),a=t?Ha(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=zt(1);const c=zt(0),f=$t(r);if((f||!f&&!o)&&((wi(r)!=="body"||Io(s))&&(l=Ka(r)),$t(r))){const p=vr(r);u=Kr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=s&&!f&&!o?Mv(s,l,!0):zt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function cE(e){return Array.from(e.getClientRects())}function fE(e){const t=Ht(e),n=Ka(e),r=e.ownerDocument.body,i=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Of(e);const a=-n.scrollTop;return At(r).direction==="rtl"&&(s+=Qe(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function dE(e,t){const n=qe(e),r=Ht(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=Df();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}const hE=new Set(["absolute","fixed"]);function pE(e,t){const n=vr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=$t(e)?Kr(e):zt(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function op(e,t,n){let r;if(t==="viewport")r=dE(e,n);else if(t==="document")r=fE(Ht(e));else if(kt(t))r=pE(t,n);else{const i=Rv(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ca(r)}function Lv(e,t){const n=zn(e);return n===t||!kt(n)||ui(n)?!1:At(n).position==="fixed"||Lv(n,t)}function mE(e,t){const n=t.get(e);if(n)return n;let r=Po(e,[],!1).filter(a=>kt(a)&&wi(a)!=="body"),i=null;const o=At(e).position==="fixed";let s=o?zn(e):e;for(;kt(s)&&!ui(s);){const a=At(s),l=Lf(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&hE.has(i.position)||Io(s)&&!l&&Lv(e,s))?r=r.filter(c=>c!==s):i=a,s=zn(s)}return t.set(e,r),r}function gE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Ha(t)?[]:mE(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const f=op(t,c,i);return u.top=Qe(f.top,u.top),u.right=Fn(f.right,u.right),u.bottom=Fn(f.bottom,u.bottom),u.left=Qe(f.left,u.left),u},op(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yE(e){const{width:t,height:n}=bv(e);return{width:t,height:n}}function vE(e,t,n){const r=$t(t),i=Ht(t),o=n==="fixed",s=vr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=zt(0);function u(){l.x=Of(i)}if(r||!r&&!o)if((wi(t)!=="body"||Io(i))&&(a=Ka(t)),r){const p=vr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();o&&!r&&i&&u();const c=i&&!r&&!o?Mv(i,a):zt(0),f=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function Ll(e){return At(e).position==="static"}function sp(e,t){if(!$t(e)||At(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ht(e)===n&&(n=n.ownerDocument.body),n}function Dv(e,t){const n=qe(e);if(Ha(e))return n;if(!$t(e)){let i=zn(e);for(;i&&!ui(i);){if(kt(i)&&!Ll(i))return i;i=zn(i)}return n}let r=sp(e,t);for(;r&&eE(r)&&Ll(r);)r=sp(r,t);return r&&ui(r)&&Ll(r)&&!Lf(r)?n:r||oE(e)||n}const xE=async function(e){const t=this.getOffsetParent||Dv,n=this.getDimensions,r=await n(e.floating);return{reference:vE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wE(e){return At(e).direction==="rtl"}const SE={convertOffsetParentRelativeRectToViewportRelativeRect:uE,getDocumentElement:Ht,getClippingRect:gE,getOffsetParent:Dv,getElementRects:xE,getClientRects:cE,getDimensions:yE,getScale:Kr,isElement:kt,isRTL:wE};function Nv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function CE(e,t){let n=null,r;const i=Ht(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(a||t(),!d||!p)return;const y=ls(f),v=ls(i.clientWidth-(c+d)),x=ls(i.clientHeight-(f+p)),m=ls(c),g={rootMargin:-y+"px "+-v+"px "+-x+"px "+-m+"px",threshold:Qe(0,Fn(1,l))||1};let S=!0;function C(T){const E=T[0].intersectionRatio;if(E!==l){if(!S)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Nv(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(C,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,g)}n.observe(e)}return s(!0),o}function PE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Nf(e),c=i||o?[...u?Po(u):[],...Po(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const f=u&&a?CE(u,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let y,v=l?vr(e):null;l&&x();function x(){const m=vr(e);v&&!Nv(v,m)&&n(),v=m,y=requestAnimationFrame(x)}return n(),()=>{var m;c.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f==null||f(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(y)}}const EE=QP,TE=YP,kE=HP,AE=qP,bE=KP,ap=WP,RE=XP,ME=(e,t,n)=>{const r=new Map,i={platform:SE,...n},o={...i.platform,_c:r};return UP(e,t,{...i,platform:o})};var LE=typeof document<"u",DE=function(){},ks=LE?w.useLayoutEffect:DE;function fa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fa(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!fa(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ov(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lp(e,t){const n=Ov(e);return Math.round(t*n)/n}function Dl(e){const t=w.useRef(e);return ks(()=>{t.current=e}),t}function NE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=w.useState(r);fa(d,r)||p(r);const[y,v]=w.useState(null),[x,m]=w.useState(null),h=w.useCallback(A=>{A!==T.current&&(T.current=A,v(A))},[]),g=w.useCallback(A=>{A!==E.current&&(E.current=A,m(A))},[]),S=o||y,C=s||x,T=w.useRef(null),E=w.useRef(null),k=w.useRef(c),L=l!=null,b=Dl(l),j=Dl(i),_=Dl(u),W=w.useCallback(()=>{if(!T.current||!E.current)return;const A={placement:t,strategy:n,middleware:d};j.current&&(A.platform=j.current),ME(T.current,E.current,A).then(D=>{const I={...D,isPositioned:_.current!==!1};B.current&&!fa(k.current,I)&&(k.current=I,Va.flushSync(()=>{f(I)}))})},[d,t,n,j,_]);ks(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[u]);const B=w.useRef(!1);ks(()=>(B.current=!0,()=>{B.current=!1}),[]),ks(()=>{if(S&&(T.current=S),C&&(E.current=C),S&&C){if(b.current)return b.current(S,C,W);W()}},[S,C,W,b,L]);const Q=w.useMemo(()=>({reference:T,floating:E,setReference:h,setFloating:g}),[h,g]),$=w.useMemo(()=>({reference:S,floating:C}),[S,C]),Y=w.useMemo(()=>{const A={position:n,left:0,top:0};if(!$.floating)return A;const D=lp($.floating,c.x),I=lp($.floating,c.y);return a?{...A,transform:"translate("+D+"px, "+I+"px)",...Ov($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:I}},[n,a,$.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:W,refs:Q,elements:$,floatingStyles:Y}),[c,W,Q,$,Y])}const OE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ap({element:r.current,padding:i}).fn(n):{}:r?ap({element:r,padding:i}).fn(n):{}}}},_E=(e,t)=>({...EE(e),options:[e,t]}),IE=(e,t)=>({...TE(e),options:[e,t]}),jE=(e,t)=>({...RE(e),options:[e,t]}),VE=(e,t)=>({...kE(e),options:[e,t]}),FE=(e,t)=>({...AE(e),options:[e,t]}),zE=(e,t)=>({...bE(e),options:[e,t]}),BE=(e,t)=>({...OE(e),options:[e,t]});var $E="Arrow",_v=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return P.jsx(Ve.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});_v.displayName=$E;var UE=_v;function WE(e){const[t,n]=w.useState(void 0);return Tt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Iv="Popper",[jv,Vv]=vi(Iv),[DL,Fv]=jv(Iv),zv="PopperAnchor",Bv=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=Fv(zv,n),s=w.useRef(null),a=Et(t,s);return w.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:P.jsx(Ve.div,{...i,ref:a})});Bv.displayName=zv;var _f="PopperContent",[HE,KE]=jv(_f),$v=w.forwardRef((e,t)=>{var Gn,xd,wd,Sd,Cd,Pd;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:y,...v}=e,x=Fv(_f,n),[m,h]=w.useState(null),g=Et(t,ki=>h(ki)),[S,C]=w.useState(null),T=WE(S),E=(T==null?void 0:T.width)??0,k=(T==null?void 0:T.height)??0,L=r+(o!=="center"?"-"+o:""),b=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},j=Array.isArray(u)?u:[u],_=j.length>0,W={padding:b,boundary:j.filter(QE),altBoundary:_},{refs:B,floatingStyles:Q,placement:$,isPositioned:Y,middlewareData:A}=NE({strategy:"fixed",placement:L,whileElementsMounted:(...ki)=>PE(...ki,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[_E({mainAxis:i+k,alignmentAxis:s}),l&&IE({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?jE():void 0,...W}),l&&VE({...W}),FE({...W,apply:({elements:ki,rects:Ed,availableWidth:kw,availableHeight:Aw})=>{const{width:bw,height:Rw}=Ed.reference,$o=ki.floating.style;$o.setProperty("--radix-popper-available-width",`${kw}px`),$o.setProperty("--radix-popper-available-height",`${Aw}px`),$o.setProperty("--radix-popper-anchor-width",`${bw}px`),$o.setProperty("--radix-popper-anchor-height",`${Rw}px`)}}),S&&BE({element:S,padding:a}),YE({arrowWidth:E,arrowHeight:k}),d&&zE({strategy:"referenceHidden",...W})]}),[D,I]=Hv($),V=_o(y);Tt(()=>{Y&&(V==null||V())},[Y,V]);const ae=(Gn=A.arrow)==null?void 0:Gn.x,Sr=(xd=A.arrow)==null?void 0:xd.y,Kt=((wd=A.arrow)==null?void 0:wd.centerOffset)!==0,[Ti,Gt]=w.useState();return Tt(()=>{m&&Gt(window.getComputedStyle(m).zIndex)},[m]),P.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:Y?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ti,"--radix-popper-transform-origin":[(Sd=A.transformOrigin)==null?void 0:Sd.x,(Cd=A.transformOrigin)==null?void 0:Cd.y].join(" "),...((Pd=A.hide)==null?void 0:Pd.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(HE,{scope:n,placedSide:D,onArrowChange:C,arrowX:ae,arrowY:Sr,shouldHideArrow:Kt,children:P.jsx(Ve.div,{"data-side":D,"data-align":I,...v,ref:g,style:{...v.style,animation:Y?void 0:"none"}})})})});$v.displayName=_f;var Uv="PopperArrow",GE={top:"bottom",right:"left",bottom:"top",left:"right"},Wv=w.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=KE(Uv,r),s=GE[o.placedSide];return P.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:P.jsx(UE,{...i,ref:n,style:{...i.style,display:"block"}})})});Wv.displayName=Uv;function QE(e){return e!==null}var YE=e=>({name:"transformOrigin",options:e,fn(t){var x,m,h;const{placement:n,rects:r,middlewareData:i}=t,s=((x=i.arrow)==null?void 0:x.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=Hv(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=i.arrow)==null?void 0:m.x)??0)+a/2,p=(((h=i.arrow)==null?void 0:h.y)??0)+l/2;let y="",v="";return u==="bottom"?(y=s?f:`${d}px`,v=`${-l}px`):u==="top"?(y=s?f:`${d}px`,v=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,v=s?f:`${p}px`):u==="left"&&(y=`${r.floating.width+l}px`,v=s?f:`${p}px`),{data:{x:y,y:v}}}});function Hv(e){const[t,n="center"]=e.split("-");return[t,n]}var XE=Bv,qE=$v,ZE=Wv;function JE(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var If=e=>{const{present:t,children:n}=e,r=eT(t),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),o=Et(r.ref,tT(i));return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:o}):null};If.displayName="Presence";function eT(e){const[t,n]=w.useState(),r=w.useRef(null),i=w.useRef(e),o=w.useRef("none"),s=e?"mounted":"unmounted",[a,l]=JE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=us(r.current);o.current=a==="mounted"?u:"none"},[a]),Tt(()=>{const u=r.current,c=i.current;if(c!==e){const d=o.current,p=us(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Tt(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=p=>{const v=us(r.current).includes(p.animationName);if(p.target===t&&v&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},d=p=>{p.target===t&&(o.current=us(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function us(e){return(e==null?void 0:e.animationName)||"none"}function tT(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nT=Dc[" useInsertionEffect ".trim().toString()]||Tt;function jf({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,s]=rT({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const c=w.useRef(e!==void 0);w.useEffect(()=>{const f=c.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=w.useCallback(c=>{var f;if(a){const d=iT(c)?c(e):c;d!==e&&((f=s.current)==null||f.call(s,d))}else o(c)},[a,e,o,s]);return[l,u]}function rT({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),i=w.useRef(n),o=w.useRef(t);return nT(()=>{o.current=t},[t]),w.useEffect(()=>{var s;i.current!==n&&((s=o.current)==null||s.call(o,n),i.current=n)},[n,i]),[n,r,o]}function iT(e){return typeof e=="function"}var oT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),sT="VisuallyHidden",Kv=w.forwardRef((e,t)=>P.jsx(Ve.span,{...e,ref:t,style:{...oT,...e.style}}));Kv.displayName=sT;var aT=Kv,[Ga,NL]=vi("Tooltip",[Vv]),Vf=Vv(),Gv="TooltipProvider",lT=700,up="tooltip.open",[uT,Qv]=Ga(Gv),Yv=e=>{const{__scopeTooltip:t,delayDuration:n=lT,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,s=w.useRef(!0),a=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),P.jsx(uT,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(u=>{a.current=u},[]),disableHoverableContent:i,children:o})};Yv.displayName=Gv;var Xv="Tooltip",[OL,Qa]=Ga(Xv),tc="TooltipTrigger",cT=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Qa(tc,n),o=Qv(tc,n),s=Vf(n),a=w.useRef(null),l=Et(t,a,i.onTriggerChange),u=w.useRef(!1),c=w.useRef(!1),f=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),P.jsx(XE,{asChild:!0,...s,children:P.jsx(Ve.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:xt(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:xt(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:xt(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:xt(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:xt(e.onBlur,i.onClose),onClick:xt(e.onClick,i.onClose)})})});cT.displayName=tc;var fT="TooltipPortal",[_L,dT]=Ga(fT,{forceMount:void 0}),ci="TooltipContent",qv=w.forwardRef((e,t)=>{const n=dT(ci,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,s=Qa(ci,e.__scopeTooltip);return P.jsx(If,{present:r||s.open,children:s.disableHoverableContent?P.jsx(Zv,{side:i,...o,ref:t}):P.jsx(hT,{side:i,...o,ref:t})})}),hT=w.forwardRef((e,t)=>{const n=Qa(ci,e.__scopeTooltip),r=Qv(ci,e.__scopeTooltip),i=w.useRef(null),o=Et(t,i),[s,a]=w.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:f}=r,d=w.useCallback(()=>{a(null),f(!1)},[f]),p=w.useCallback((y,v)=>{const x=y.currentTarget,m={x:y.clientX,y:y.clientY},h=vT(m,x.getBoundingClientRect()),g=xT(m,h),S=wT(v.getBoundingClientRect()),C=CT([...g,...S]);a(C),f(!0)},[f]);return w.useEffect(()=>()=>d(),[d]),w.useEffect(()=>{if(l&&c){const y=x=>p(x,c),v=x=>p(x,l);return l.addEventListener("pointerleave",y),c.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",y),c.removeEventListener("pointerleave",v)}}},[l,c,p,d]),w.useEffect(()=>{if(s){const y=v=>{const x=v.target,m={x:v.clientX,y:v.clientY},h=(l==null?void 0:l.contains(x))||(c==null?void 0:c.contains(x)),g=!ST(m,s);h?d():g&&(d(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,c,s,u,d]),P.jsx(Zv,{...e,ref:o})}),[pT,mT]=Ga(Xv,{isInside:!1}),gT=yP("TooltipContent"),Zv=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:s,...a}=e,l=Qa(ci,n),u=Vf(n),{onClose:c}=l;return w.useEffect(()=>(document.addEventListener(up,c),()=>document.removeEventListener(up,c)),[c]),w.useEffect(()=>{if(l.trigger){const f=d=>{const p=d.target;p!=null&&p.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),P.jsx(Af,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:P.jsxs(qE,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[P.jsx(gT,{children:r}),P.jsx(pT,{scope:n,isInside:!0,children:P.jsx(aT,{id:l.contentId,role:"tooltip",children:i||r})})]})})});qv.displayName=ci;var Jv="TooltipArrow",yT=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Vf(n);return mT(Jv,n).isInside?null:P.jsx(ZE,{...i,...r,ref:t})});yT.displayName=Jv;function vT(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function xT(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function wT(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function ST(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,s=t.length-1;or!=d>r&&n<(f-u)*(r-c)/(d-c)+u&&(i=!i)}return i}function CT(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),PT(t)}function PT(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],s=n[n.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ET=Yv,e0=qv;function t0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{const t=AT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(Ff);return a[0]===""&&a.length!==1&&a.shift(),r0(a,t)||kT(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&r[s]?[...l,...r[s]]:l}}},r0=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?r0(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Ff);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},cp=/^\[(.+)\]$/,kT=e=>{if(cp.test(e)){const t=cp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},AT=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return RT(Object.entries(e.classGroups),n).forEach(([o,s])=>{nc(s,r,o,t)}),r},nc=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:fp(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(bT(i)){nc(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,s])=>{nc(s,fp(t,o),n,r)})})},fp=(e,t)=>{let n=e;return t.split(Ff).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},bT=e=>e.isThemeGetter,RT=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,i]}):e,MT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=r.get(o))!==void 0)return i(o,s),s},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},i0="!",LT=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,s=a=>{const l=[];let u=0,c=0,f;for(let x=0;xc?f-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:s}):s},DT=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},NT=e=>({cache:MT(e.cacheSize),parseClassName:LT(e),...TT(e)}),OT=/\s+/,_T=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(OT);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(u);let y=!!p,v=r(y?d.substring(0,p):d);if(!v){if(!y){a=u+(a.length>0?" "+a:a);continue}if(v=r(d),!v){a=u+(a.length>0?" "+a:a);continue}y=!1}const x=DT(c).join(":"),m=f?x+i0:x,h=m+v;if(o.includes(h))continue;o.push(h);const g=i(v,y);for(let S=0;S0?" "+a:a)}return a};function IT(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=NT(u),r=n.cache.get,i=n.cache.set,o=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=_T(l,n);return i(l,c),c}return function(){return o(IT.apply(null,arguments))}}const Z=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},s0=/^\[(?:([a-z-]+):)?(.+)\]$/i,VT=/^\d+\/\d+$/,FT=new Set(["px","full","screen"]),zT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,BT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,UT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,WT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qt=e=>Gr(e)||FT.has(e)||VT.test(e),fn=e=>Si(e,"length",ZT),Gr=e=>!!e&&!Number.isNaN(Number(e)),Nl=e=>Si(e,"number",Gr),_i=e=>!!e&&Number.isInteger(Number(e)),HT=e=>e.endsWith("%")&&Gr(e.slice(0,-1)),z=e=>s0.test(e),dn=e=>zT.test(e),KT=new Set(["length","size","percentage"]),GT=e=>Si(e,KT,a0),QT=e=>Si(e,"position",a0),YT=new Set(["image","url"]),XT=e=>Si(e,YT,ek),qT=e=>Si(e,"",JT),Ii=()=>!0,Si=(e,t,n)=>{const r=s0.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ZT=e=>BT.test(e)&&!$T.test(e),a0=()=>!1,JT=e=>UT.test(e),ek=e=>WT.test(e),tk=()=>{const e=Z("colors"),t=Z("spacing"),n=Z("blur"),r=Z("brightness"),i=Z("borderColor"),o=Z("borderRadius"),s=Z("borderSpacing"),a=Z("borderWidth"),l=Z("contrast"),u=Z("grayscale"),c=Z("hueRotate"),f=Z("invert"),d=Z("gap"),p=Z("gradientColorStops"),y=Z("gradientColorStopPositions"),v=Z("inset"),x=Z("margin"),m=Z("opacity"),h=Z("padding"),g=Z("saturate"),S=Z("scale"),C=Z("sepia"),T=Z("skew"),E=Z("space"),k=Z("translate"),L=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",z,t],_=()=>[z,t],W=()=>["",Qt,fn],B=()=>["auto",Gr,z],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",z],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Gr,z];return{cacheSize:500,separator:":",theme:{colors:[Ii],spacing:[Qt,fn],blur:["none","",dn,z],brightness:V(),borderColor:[e],borderRadius:["none","","full",dn,z],borderSpacing:_(),borderWidth:W(),contrast:V(),grayscale:D(),hueRotate:V(),invert:D(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[HT,fn],inset:j(),margin:j(),opacity:V(),padding:_(),saturate:V(),scale:V(),sepia:D(),skew:V(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[dn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),z]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_i,z]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",_i,z]}],"grid-cols":[{"grid-cols":[Ii]}],"col-start-end":[{col:["auto",{span:["full",_i,z]},z]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[Ii]}],"row-start-end":[{row:["auto",{span:[_i,z]},z]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,t]}],"min-w":[{"min-w":[z,t,"min","max","fit"]}],"max-w":[{"max-w":[z,t,"none","full","min","max","fit","prose",{screen:[dn]},dn]}],h:[{h:[z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",dn,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Nl]}],"font-family":[{font:[Ii]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",Gr,Nl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qt,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qt,fn]}],"underline-offset":[{"underline-offset":["auto",Qt,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),QT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},XT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:$()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Qt,z]}],"outline-w":[{outline:[Qt,fn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Qt,fn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",dn,qT]}],"shadow-color":[{shadow:[Ii]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",dn,z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[g]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[_i,z]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qt,fn,Nl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},nk=jT(tk);function Fe(...e){return nk(n0(e))}const rk=ET,ik=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>P.jsx(e0,{ref:r,sideOffset:t,className:Fe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));ik.displayName=e0.displayName;const ok=()=>P.jsx("div",{className:"bg-nutri-dark text-white py-2.5 text-center text-[9px] sm:text-[11px] font-black tracking-[0.2em] px-4 flex items-center justify-center gap-2 sm:gap-4 overflow-hidden relative z-50",children:P.jsx("span",{className:"flex items-center gap-1 shrink-0 uppercase",children:"⚠️ ATENÇÃO: ÚLTIMAS VAGAS COM VALOR PROMOCIONAL: 5x R$ 8,19"})});/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ak=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dp=e=>{const t=ak(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Ol={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},uk=w.createContext({}),ck=()=>w.useContext(uk),fk=w.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...a},l)=>{const{size:u=24,strokeWidth:c=2,absoluteStrokeWidth:f=!1,color:d="currentColor",className:p=""}=ck()??{},y=r??f?Number(n??c)*24/Number(t??u):n??c;return w.createElement("svg",{ref:l,...Ol,width:t??u??Ol.width,height:t??u??Ol.height,stroke:e??d,strokeWidth:y,className:l0("lucide",p,i),...!o&&!lk(a)&&{"aria-hidden":"true"},...a},[...s.map(([v,x])=>w.createElement(v,x)),...Array.isArray(o)?o:[o]])});/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jo=(e,t)=>{const n=w.forwardRef(({className:r,...i},o)=>w.createElement(fk,{ref:o,iconNode:t,className:l0(`lucide-${sk(dp(e))}`,`lucide-${e}`,r),...i}));return n.displayName=dp(e),n};/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hk=jo("chevron-down",dk);/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pk=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],mk=jo("clipboard",pk);/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],hp=jo("clock",gk);/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yk=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],vk=jo("sparkles",yk);/** * @license lucide-react v1.8.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xk=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],pp=jo("star",xk);function wk(e){const t=e+"CollectionProvider",[n,r]=vi(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:x,children:m}=v,h=ce.useRef(null),g=ce.useRef(new Map).current;return P.jsx(i,{scope:x,itemMap:g,collectionRef:h,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=aa(a),u=ce.forwardRef((v,x)=>{const{scope:m,children:h}=v,g=o(a,m),S=Et(x,g.collectionRef);return P.jsx(l,{ref:S,children:h})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=aa(c),p=ce.forwardRef((v,x)=>{const{scope:m,children:h,...g}=v,S=ce.useRef(null),C=Et(x,S),T=o(c,m);return ce.useEffect(()=>(T.itemMap.set(S,{ref:S,...g}),()=>void T.itemMap.delete(S))),P.jsx(d,{[f]:"",ref:C,children:h})});p.displayName=c;function y(v){const x=o(e+"CollectionConsumer",v);return ce.useCallback(()=>{const h=x.collectionRef.current;if(!h)return[];const g=Array.from(h.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((T,E)=>g.indexOf(T.ref.current)-g.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},y,r]}var Ya="Collapsible",[Sk,u0]=vi(Ya),[Ck,zf]=Sk(Ya),c0=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:s,...a}=e,[l,u]=jf({prop:r,defaultProp:i??!1,onChange:s,caller:Ya});return P.jsx(Ck,{scope:n,disabled:o,contentId:Pv(),open:l,onOpenToggle:w.useCallback(()=>u(c=>!c),[u]),children:P.jsx(Ve.div,{"data-state":$f(l),"data-disabled":o?"":void 0,...a,ref:t})})});c0.displayName=Ya;var f0="CollapsibleTrigger",d0=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=zf(f0,n);return P.jsx(Ve.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":$f(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:xt(e.onClick,i.onOpenToggle)})});d0.displayName=f0;var Bf="CollapsibleContent",h0=w.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=zf(Bf,e.__scopeCollapsible);return P.jsx(If,{present:n||i.open,children:({present:o})=>P.jsx(Pk,{...r,ref:t,present:o})})});h0.displayName=Bf;var Pk=w.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...o}=e,s=zf(Bf,n),[a,l]=w.useState(r),u=w.useRef(null),c=Et(t,u),f=w.useRef(0),d=f.current,p=w.useRef(0),y=p.current,v=s.open||a,x=w.useRef(v),m=w.useRef(void 0);return w.useEffect(()=>{const h=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(h)},[]),Tt(()=>{const h=u.current;if(h){m.current=m.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const g=h.getBoundingClientRect();f.current=g.height,p.current=g.width,x.current||(h.style.transitionDuration=m.current.transitionDuration,h.style.animationName=m.current.animationName),l(r)}},[s.open,r]),P.jsx(Ve.div,{"data-state":$f(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v,...o,ref:c,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:v&&i})});function $f(e){return e?"open":"closed"}var Ek=c0,Tk=d0,kk=h0,Ak=w.createContext(void 0);function bk(e){const t=w.useContext(Ak);return e||t||"ltr"}var bt="Accordion",Rk=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Uf,Mk,Lk]=wk(bt),[Xa,IL]=vi(bt,[Lk,u0]),Wf=u0(),p0=ce.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,o=r;return P.jsx(Uf.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?P.jsx(_k,{...o,ref:t}):P.jsx(Ok,{...i,ref:t})})});p0.displayName=bt;var[m0,Dk]=Xa(bt),[g0,Nk]=Xa(bt,{collapsible:!1}),Ok=ce.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...s}=e,[a,l]=jf({prop:n,defaultProp:r??"",onChange:i,caller:bt});return P.jsx(m0,{scope:e.__scopeAccordion,value:ce.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:ce.useCallback(()=>o&&l(""),[o,l]),children:P.jsx(g0,{scope:e.__scopeAccordion,collapsible:o,children:P.jsx(y0,{...s,ref:t})})})}),_k=ce.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[s,a]=jf({prop:n,defaultProp:r??[],onChange:i,caller:bt}),l=ce.useCallback(c=>a((f=[])=>[...f,c]),[a]),u=ce.useCallback(c=>a((f=[])=>f.filter(d=>d!==c)),[a]);return P.jsx(m0,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:P.jsx(g0,{scope:e.__scopeAccordion,collapsible:!0,children:P.jsx(y0,{...o,ref:t})})})}),[Ik,qa]=Xa(bt),y0=ce.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:o="vertical",...s}=e,a=ce.useRef(null),l=Et(a,t),u=Mk(n),f=bk(i)==="ltr",d=xt(e.onKeyDown,p=>{var k;if(!Rk.includes(p.key))return;const y=p.target,v=u().filter(L=>{var b;return!((b=L.ref.current)!=null&&b.disabled)}),x=v.findIndex(L=>L.ref.current===y),m=v.length;if(x===-1)return;p.preventDefault();let h=x;const g=0,S=m-1,C=()=>{h=x+1,h>S&&(h=g)},T=()=>{h=x-1,h{const{__scopeAccordion:n,value:r,...i}=e,o=qa(da,n),s=Dk(da,n),a=Wf(n),l=Pv(),u=r&&s.value.includes(r)||!1,c=o.disabled||e.disabled;return P.jsx(jk,{scope:n,open:u,disabled:c,triggerId:l,children:P.jsx(Ek,{"data-orientation":o.orientation,"data-state":E0(u),...a,...i,ref:t,disabled:c,open:u,onOpenChange:f=>{f?s.onItemOpen(r):s.onItemClose(r)}})})});v0.displayName=da;var x0="AccordionHeader",w0=ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=qa(bt,n),o=Hf(x0,n);return P.jsx(Ve.h3,{"data-orientation":i.orientation,"data-state":E0(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:t})});w0.displayName=x0;var rc="AccordionTrigger",S0=ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=qa(bt,n),o=Hf(rc,n),s=Nk(rc,n),a=Wf(n);return P.jsx(Uf.ItemSlot,{scope:n,children:P.jsx(Tk,{"aria-disabled":o.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...a,...r,ref:t})})});S0.displayName=rc;var C0="AccordionContent",P0=ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=qa(bt,n),o=Hf(C0,n),s=Wf(n);return P.jsx(kk,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});P0.displayName=C0;function E0(e){return e?"open":"closed"}var Vk=p0,Fk=v0,zk=w0,T0=S0,k0=P0;const jL=Vk,Bk=w.forwardRef(({className:e,...t},n)=>P.jsx(Fk,{ref:n,className:Fe("border-b",e),...t}));Bk.displayName="AccordionItem";const $k=w.forwardRef(({className:e,children:t,...n},r)=>P.jsx(zk,{className:"flex",children:P.jsxs(T0,{ref:r,className:Fe("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,P.jsx(hk,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));$k.displayName=T0.displayName;const Uk=w.forwardRef(({className:e,children:t,...n},r)=>P.jsx(k0,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:P.jsx("div",{className:Fe("pb-4 pt-0",e),children:t})}));Uk.displayName=k0.displayName;const A0=w.createContext({});function Wk(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Hk=typeof window<"u",Kk=Hk?w.useLayoutEffect:w.useEffect,Kf=w.createContext(null);function Gf(e,t){e.indexOf(t)===-1&&e.push(t)}function ha(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ut=(e,t,n)=>n>t?t:n{},fi=()=>{};const Bn={},b0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function R0(e){return typeof e=="object"&&e!==null}const M0=e=>/^0[^.\s]+$/u.test(e);function L0(e){let t;return()=>(t===void 0&&(t=e()),t)}const at=e=>e,Gk=(e,t)=>n=>t(e(n)),Vo=(...e)=>e.reduce(Gk),Eo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Qf{constructor(){this.subscriptions=[]}add(t){return Gf(this.subscriptions,t),()=>ha(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;oe*1e3,ot=e=>e/1e3;function D0(e,t){return t?e*(1e3/t):0}const N0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qk=1e-7,Yk=12;function Xk(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=N0(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Qk&&++aXk(o,0,1,e,n);return o=>o===0||o===1?o:N0(i(o),t,r)}const O0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_0=e=>t=>1-e(1-t),I0=Fo(.33,1.53,.69,.99),Yf=_0(I0),j0=O0(Yf),V0=e=>e>=1?1:(e*=2)<1?.5*Yf(e):.5*(2-Math.pow(2,-10*(e-1))),Xf=e=>1-Math.sin(Math.acos(e)),F0=_0(Xf),z0=O0(Xf),qk=Fo(.42,0,1,1),Zk=Fo(0,0,.58,1),B0=Fo(.42,0,.58,1),Jk=e=>Array.isArray(e)&&typeof e[0]!="number",$0=e=>Array.isArray(e)&&typeof e[0]=="number",mp={linear:at,easeIn:qk,easeInOut:B0,easeOut:Zk,circIn:Xf,circInOut:z0,circOut:F0,backIn:Yf,backInOut:j0,backOut:I0,anticipate:V0},eA=e=>typeof e=="string",gp=e=>{if($0(e)){fi(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Fo(t,n,r,i)}else if(eA(e))return fi(mp[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),mp[e];return e},cs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],yp={value:null,addProjectionMetrics:null};function tA(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(f){s.has(f)&&(c.schedule(f),e()),l++,f(a)}const c={schedule:(f,d=!1,p=!1)=>{const v=p&&i?n:r;return d&&s.add(f),v.add(f),f},cancel:f=>{r.delete(f),s.delete(f)},process:f=>{if(a=f,i){o=!0;return}i=!0;const d=n;n=r,r=d,n.forEach(u),t&&yp.value&&yp.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(f))}};return c}const nA=40;function U0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=cs.reduce((g,S)=>(g[S]=tA(o,t?S:void 0),g),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:p,postRender:y}=s,v=()=>{const g=Bn.useManualTiming,S=g?i.timestamp:performance.now();n=!1,g||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,nA),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),p.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},x=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:cs.reduce((g,S)=>{const C=s[S];return g[S]=(T,E=!1,k=!1)=>(n||x(),C.schedule(T,E,k)),g},{}),cancel:g=>{for(let S=0;S(As===void 0&&Ne.set(we.isProcessing||Bn.useManualTiming?we.timestamp:performance.now()),As),set:e=>{As=e,queueMicrotask(rA)}},W0=e=>t=>typeof t=="string"&&t.startsWith(e),H0=W0("--"),iA=W0("var(--"),qf=e=>iA(e)?oA.test(e.split("/*")[0].trim()):!1,oA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function vp(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ci={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},To={...Ci,transform:e=>Ut(0,1,e)},fs={...Ci,default:1},Zi=e=>Math.round(e*1e5)/1e5,Zf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sA(e){return e==null}const aA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jf=(e,t)=>n=>!!(typeof n=="string"&&aA.test(n)&&n.startsWith(e)||t&&!sA(n)&&Object.prototype.hasOwnProperty.call(n,t)),K0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(Zf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},lA=e=>Ut(0,255,e),Il={...Ci,transform:e=>Math.round(lA(e))},tr={test:Jf("rgb","red"),parse:K0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Il.transform(e)+", "+Il.transform(t)+", "+Il.transform(n)+", "+Zi(To.transform(r))+")"};function uA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ic={test:Jf("#"),parse:uA,transform:tr.transform},zo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pn=zo("deg"),Bt=zo("%"),O=zo("px"),cA=zo("vh"),fA=zo("vw"),xp={...Bt,parse:e=>Bt.parse(e)/100,transform:e=>Bt.transform(e*100)},Ir={test:Jf("hsl","hue"),parse:K0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bt.transform(Zi(t))+", "+Bt.transform(Zi(n))+", "+Zi(To.transform(r))+")"},de={test:e=>tr.test(e)||ic.test(e)||Ir.test(e),parse:e=>tr.test(e)?tr.parse(e):Ir.test(e)?Ir.parse(e):ic.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?tr.transform(e):Ir.transform(e),getAnimatableNone:e=>{const t=de.parse(e);return t.alpha=0,de.transform(t)}},dA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Zf))==null?void 0:t.length)||0)+(((n=e.match(dA))==null?void 0:n.length)||0)>0}const G0="number",Q0="color",pA="var",mA="var(",wp="${}",gA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function di(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(gA,l=>(de.test(l)?(r.color.push(o),i.push(Q0),n.push(de.parse(l))):l.startsWith(mA)?(r.var.push(o),i.push(pA),n.push(l)):(r.number.push(o),i.push(G0),n.push(parseFloat(l))),++o,wp)).split(wp);return{values:n,split:a,indexes:r,types:i}}function yA(e){return di(e).values}function Y0({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;otypeof e=="number"?0:de.test(e)?de.getAnimatableNone(e):e,wA=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:xA(e);function SA(e){const t=di(e);return Y0(t)(t.values.map((r,i)=>wA(r,t.split[i])))}const Ct={test:hA,parse:yA,createTransformer:vA,getAnimatableNone:SA};function jl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function CA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=jl(l,a,e+1/3),o=jl(l,a,e),s=jl(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function pa(e,t){return n=>n>0?t:e}const ee=(e,t,n)=>e+(t-e)*n,Vl=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},PA=[ic,tr,Ir],EA=e=>PA.find(t=>t.test(e));function Sp(e){const t=EA(e);if(Za(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Ir&&(n=CA(n)),n}const Cp=(e,t)=>{const n=Sp(e),r=Sp(t);if(!n||!r)return pa(e,t);const i={...n};return o=>(i.red=Vl(n.red,r.red,o),i.green=Vl(n.green,r.green,o),i.blue=Vl(n.blue,r.blue,o),i.alpha=ee(n.alpha,r.alpha,o),tr.transform(i))},oc=new Set(["none","hidden"]);function TA(e,t){return oc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kA(e,t){return n=>ee(e,t,n)}function ed(e){return typeof e=="number"?kA:typeof e=="string"?qf(e)?pa:de.test(e)?Cp:RA:Array.isArray(e)?X0:typeof e=="object"?de.test(e)?Cp:AA:pa}function X0(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>ed(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in r)n[o]=r[o](i);return n}}function bA(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Ct.createTransformer(t),r=di(e),i=di(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?oc.has(e)&&!i.values.length||oc.has(t)&&!r.values.length?TA(e,t):Vo(X0(bA(r,i),i.values),n):(Za(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),pa(e,t))};function q0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):ed(e)(e,t)}const MA=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>$n(t),now:()=>we.isProcessing?we.timestamp:Ne.now()}},Z0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o=ma?1/0:t}function LA(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(td(r),ma);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:ot(i)}}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function sc(e,t){return e*Math.sqrt(1-t*t)}const DA=12;function NA(e,t,n){let r=n;for(let i=1;i{const c=u*s,f=c*e,d=c-n,p=sc(u,s),y=Math.exp(-f);return Fl-d/p*y},o=u=>{const f=u*s*e,d=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),v=sc(Math.pow(u,2),s);return(-i(u)+Fl>0?-1:1)*((d-p)*y)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Fl+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=NA(i,o,a);if(e=He(e),isNaN(l))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const _A=["duration","bounce"],IA=["stiffness","damping","mass"];function Pp(e,t){return t.some(n=>e[n]!==void 0)}function jA(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!Pp(e,IA)&&Pp(e,_A))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ut(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:re.mass,stiffness:i,damping:o}}else{const n=OA({...e,velocity:0});t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function ga(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:p}=jA({...n,velocity:-ot(n.velocity||0)}),y=d||0,v=u/(2*Math.sqrt(l*c)),x=s-o,m=ot(Math.sqrt(l/c)),h=Math.abs(x)<5;r||(r=h?re.restSpeed.granular:re.restSpeed.default),i||(i=h?re.restDelta.granular:re.restDelta.default);let g,S,C,T,E,k;if(v<1)C=sc(m,v),T=(y+v*m*x)/C,g=b=>{const j=Math.exp(-v*m*b);return s-j*(T*Math.sin(C*b)+x*Math.cos(C*b))},E=v*m*T+x*C,k=v*m*x-T*C,S=b=>Math.exp(-v*m*b)*(E*Math.sin(C*b)+k*Math.cos(C*b));else if(v===1){g=j=>s-Math.exp(-m*j)*(x+(y+m*x)*j);const b=y+m*x;S=j=>Math.exp(-m*j)*(m*b*j-y)}else{const b=m*Math.sqrt(v*v-1);g=B=>{const Q=Math.exp(-v*m*B),$=Math.min(b*B,300);return s-Q*((y+v*m*x)*Math.sinh($)+b*x*Math.cosh($))/b};const j=(y+v*m*x)/b,_=v*m*j-x*b,W=v*m*x-j*b;S=B=>{const Q=Math.exp(-v*m*B),$=Math.min(b*B,300);return Q*(_*Math.sinh($)+W*Math.cosh($))}}const L={calculatedDuration:p&&f||null,velocity:b=>He(S(b)),next:b=>{if(!p&&v<1){const _=Math.exp(-v*m*b),W=Math.sin(C*b),B=Math.cos(C*b),Q=s-_*(T*W+x*B),$=He(_*(E*W+k*B));return a.done=Math.abs($)<=r&&Math.abs(s-Q)<=i,a.value=a.done?s:Q,a}const j=g(b);if(p)a.done=b>=f;else{const _=He(S(b));a.done=Math.abs(_)<=r&&Math.abs(s-j)<=i}return a.value=a.done?s:j,a},toString:()=>{const b=Math.min(td(L),ma),j=Z0(_=>L.next(b*_).value,b,30);return b+"ms "+j},toTransition:()=>{}};return L}ga.applyToOptions=e=>{const t=LA(e,100,ga);return e.ease=t.ease,e.duration=He(t.duration),e.type="keyframes",e};const VA=5;function J0(e,t,n){const r=Math.max(t-VA,0);return D0(n-e(r),t-r)}function ac({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},p=k=>a!==void 0&&kl,y=k=>a===void 0?l:l===void 0||Math.abs(a-k)-v*Math.exp(-k/r),g=k=>m+h(k),S=k=>{const L=h(k),b=g(k);d.done=Math.abs(L)<=u,d.value=d.done?m:b};let C,T;const E=k=>{p(d.value)&&(C=k,T=ga({keyframes:[d.value,y(d.value)],velocity:J0(g,k,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:k=>{let L=!1;return!T&&C===void 0&&(L=!0,S(k),E(k)),C!==void 0&&k>=C?T.next(k-C):(!L&&S(k),d)}}}function FA(e,t,n){const r=[],i=n||Bn.mix||q0,o=e.length-1;for(let s=0;st[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=FA(t,r,i),l=a.length,u=c=>{if(s&&c1)for(;fu(Ut(e[0],e[o-1],c)):u}function BA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Eo(0,t,r);e.push(ee(n,1,i))}}function $A(e){const t=[0];return BA(t,e.length-1),t}function UA(e,t){return e.map(n=>n*t)}function WA(e,t){return e.map(()=>t||B0).splice(0,e.length-1)}function Ji({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Jk(r)?r.map(gp):gp(r),o={done:!1,value:t[0]},s=UA(n&&n.length===t.length?n:$A(t),e),a=zA(s,t,{ease:Array.isArray(i)?i:WA(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const HA=e=>e!==null;function Ja(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(HA),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const KA={decay:ac,inertia:ac,tween:Ji,keyframes:Ji,spring:ga};function ex(e){typeof e.type=="string"&&(e.type=KA[e.type])}class nd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const GA=e=>e/100;class ya extends nd{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ne.now()&&this.tick(Ne.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ex(t);const{type:n=Ji,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Ji;l!==Ji&&typeof a[0]!="number"&&(this.mixKeyframes=Vo(GA,q0(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=td(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:p,type:y,onUpdate:v,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),h=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,S=r;if(f){const k=Math.min(this.currentTime,i)/a;let L=Math.floor(k),b=k%1;!b&&k>=1&&(b=1),b===1&&L--,L=Math.min(L,f+1),!!(L%2)&&(d==="reverse"?(b=1-b,p&&(b-=p/a)):d==="mirror"&&(S=s)),g=Ut(0,1,b)*a}let C;h?(this.delayState.value=c[0],C=this.delayState):C=S.next(g),o&&!h&&(C.value=o(C.value));let{done:T}=C;!h&&l!==null&&(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return E&&y!==ac&&(C.value=Ja(c,this.options,x,this.speed)),v&&v(C.value),E&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return ot(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ot(t)}get time(){return ot(this.currentTime)}set time(t){t=He(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return J0(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Ne.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ot(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=MA,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ne.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function QA(e){for(let t=1;te*180/Math.PI,lc=e=>{const t=nr(Math.atan2(e[1],e[0]));return uc(t)},YA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:lc,rotateZ:lc,skewX:e=>nr(Math.atan(e[1])),skewY:e=>nr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uc=e=>(e=e%360,e<0&&(e+=360),e),Ep=lc,Tp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),kp=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),XA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Tp,scaleY:kp,scale:e=>(Tp(e)+kp(e))/2,rotateX:e=>uc(nr(Math.atan2(e[6],e[5]))),rotateY:e=>uc(nr(Math.atan2(-e[2],e[0]))),rotateZ:Ep,rotate:Ep,skewX:e=>nr(Math.atan(e[4])),skewY:e=>nr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function cc(e){return e.includes("scale")?1:0}function fc(e,t){if(!e||e==="none")return cc(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=XA,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=YA,i=a}if(!i)return cc(t);const o=r[t],s=i[1].split(",").map(ZA);return typeof o=="function"?o(s):s[o]}const qA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return fc(n,t)};function ZA(e){return parseFloat(e.trim())}const Pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ei=new Set(Pi),Ap=e=>e===Ci||e===O,JA=new Set(["x","y","z"]),eb=Pi.filter(e=>!JA.has(e));function tb(e){const t=[];return eb.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>fc(t,"x"),y:(e,{transform:t})=>fc(t,"y")};bn.translateX=bn.x;bn.translateY=bn.y;const fr=new Set;let dc=!1,hc=!1,pc=!1;function tx(){if(hc){const e=Array.from(fr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=tb(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}hc=!1,dc=!1,fr.forEach(e=>e.complete(pc)),fr.clear()}function nx(){fr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hc=!0)})}function nb(){pc=!0,nx(),tx(),pc=!1}class rd{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(fr.add(this),dc||(dc=!0,X.read(nx),X.resolveKeyframes(tx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}QA(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),fr.delete(this)}cancel(){this.state==="scheduled"&&(fr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rb=e=>e.startsWith("--");function rx(e,t,n){rb(t)?e.style.setProperty(t,n):e.style[t]=n}const ib={};function ix(e,t){const n=L0(e);return()=>ib[t]??n()}const ob=ix(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ox=ix(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$i=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$i([0,.65,.55,1]),circOut:$i([.55,0,1,.45]),backIn:$i([.31,.01,.66,-.59]),backOut:$i([.33,1.53,.69,.99])};function sx(e,t){if(e)return typeof e=="function"?ox()?Z0(e,t):"ease-out":$0(e)?$i(e):Array.isArray(e)?e.map(n=>sx(n,t)||bp.easeOut):bp[e]}function sb(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=sx(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function ax(e){return typeof e=="function"&&"applyToOptions"in e}function ab({type:e,...t}){return ax(e)&&ox()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lx extends nd{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,fi(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=ab(t);this.animation=sb(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Ja(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),rx(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ot(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ot(t)}get time(){return ot(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=He(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&ob()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),at):i(this)}}const ux={anticipate:V0,backInOut:j0,circInOut:z0};function lb(e){return e in ux}function ub(e){typeof e.ease=="string"&&lb(e.ease)&&(e.ease=ux[e.ease])}const zl=10;class cb extends lx{constructor(t){ub(t),ex(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ya({...s,autoplay:!1}),l=Math.max(zl,Ne.now()-this.startTime),u=Ut(0,zl,l-zl),c=a.sample(l).value,{name:f}=this.options;o&&f&&rx(o,f,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const Rp=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ct.test(e)||e==="0")&&!e.startsWith("url("));function fb(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function yb(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return gb()&&n&&(cx.has(n)||mb.has(n)&&pb(a))&&(n!=="transform"||!c)&&!u&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const vb=40;class xb extends nd{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var y;super(),this.stop=()=>{var v,x;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=Ne.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...f},p=(c==null?void 0:c.KeyframeResolver)||rd;this.keyframeResolver=new p(a,(v,x,m)=>this.onKeyframesResolved(v,x,d,!m),l,u,c),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,i){var m,h;this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Ne.now();let f=!0;db(t,o,s,a)||(f=!1,(Bn.instantAnimations||!l)&&(c==null||c(Ja(t,r,n))),t[0]=t[t.length-1],mc(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>vb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=f&&!u&&yb(p),v=(h=(m=p.motionValue)==null?void 0:m.owner)==null?void 0:h.current;let x;if(y)try{x=new cb({...p,element:v})}catch{x=new ya(p)}else x=new ya(p);x.finished.then(()=>{this.notifyFinished()}).catch(at),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),nb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function fx(e,t,n,r=0,i=1){const o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}const wb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sb(e){const t=wb.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Cb=4;function dx(e,t,n=1){fi(n<=Cb,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Sb(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return b0(s)?parseFloat(s):s}return qf(i)?dx(i,t,n+1):i}const Pb={type:"spring",stiffness:500,damping:25,restSpeed:10},Eb=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tb={type:"keyframes",duration:.8},kb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ab=(e,{keyframes:t})=>t.length>2?Tb:Ei.has(e)?e.startsWith("scale")?Eb(t[1]):Pb:kb;function hx(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function id(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?hx(n,e):n}const bb=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Rb(e){for(const t in e)if(!bb.has(t))return!0;return!1}const od=(e,t,n,r={},i,o)=>s=>{const a=id(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-He(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};Rb(a)||Object.assign(c,Ab(e,c)),c.duration&&(c.duration=He(c.duration)),c.repeatDelay&&(c.repeatDelay=He(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(mc(c),c.delay===0&&(f=!0)),(Bn.instantAnimations||Bn.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(f=!0,mc(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=Ja(c.keyframes,a);if(d!==void 0){X.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new ya(c):new xb(c)};function Mp(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function sd(e,t,n,r){if(typeof t=="function"){const[i,o]=Mp(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Mp(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function dr(e,t,n){const r=e.getProps();return sd(r,t,n!==void 0?n:r.custom,e)}const px=new Set(["width","height","top","left","right","bottom",...Pi]),Lp=30,Mb=e=>!isNaN(parseFloat(e));class Lb{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=Ne.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ne.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Mb(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Qf);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ne.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Lp)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Lp);return D0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hi(e,t){return new Lb(e,t)}const gc=e=>Array.isArray(e);function Db(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hi(n))}function Nb(e){return gc(e)?e[e.length-1]||0:e}function Ob(e,t){const n=dr(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=Nb(o[s]);Db(e,s,a)}}const Se=e=>!!(e&&e.getVelocity);function _b(e){return!!(Se(e)&&e.add)}function yc(e,t){const n=e.getValue("willChange");if(_b(n))return n.add(t);if(!n&&Bn.WillChange){const r=new Bn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function ad(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Ib="framerAppearId",mx="data-"+ad(Ib);function gx(e){return e.props[mx]}function jb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function yx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();o=o?hx(o,l):l;const u=o==null?void 0:o.reduceMotion;r&&(o=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const p=e.getValue(d,e.latestValues[d]??null),y=a[d];if(y===void 0||f&&jb(f,d))continue;const v={delay:n,...id(o||{},d)},x=p.get();if(x!==void 0&&!p.isAnimating()&&!Array.isArray(y)&&y===x&&!v.velocity){X.update(()=>p.set(y));continue}let m=!1;if(window.MotionHandoffAnimation){const S=gx(e);if(S){const C=window.MotionHandoffAnimation(S,d,X);C!==null&&(v.startTime=C,m=!0)}}yc(e,d);const h=u??e.shouldReduceMotion;p.start(od(d,p,y,h&&px.has(d)?{type:!1}:v,e,m));const g=p.animation;g&&c.push(g)}if(s){const d=()=>X.update(()=>{s&&Ob(e,s)});c.length?Promise.all(c).then(d):d()}return c}function vc(e,t,n={}){var l;const r=dr(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(yx(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return Vb(e,t,u,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,s]:[s,o];return u().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function Vb(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(vc(l,t,{...s,delay:n+(typeof r=="function"?0:r)+fx(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Fb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vc(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vc(e,t,n);else{const i=typeof t=="function"?dr(e,t,n.custom):t;r=Promise.all(yx(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const zb={test:e=>e==="auto",parse:e=>e},vx=e=>t=>t.test(e),xx=[Ci,O,Bt,pn,fA,cA,zb],Dp=e=>xx.find(vx(e));function Bb(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||M0(e):!0}const $b=new Set(["brightness","contrast","saturate","opacity"]);function Ub(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zf)||[];if(!r)return e;const i=n.replace(r,"");let o=$b.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Wb=/\b([a-z-]*)\(.*?\)/gu,xc={...Ct,getAnimatableNone:e=>{const t=e.match(Wb);return t?t.map(Ub).join(" "):e}},wc={...Ct,getAnimatableNone:e=>{const t=Ct.parse(e);return Ct.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Np={...Ci,transform:Math.round},Hb={rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:fs,scaleX:fs,scaleY:fs,scaleZ:fs,skew:pn,skewX:pn,skewY:pn,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:To,originX:xp,originY:xp,originZ:O},ld={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,inset:O,insetBlock:O,insetBlockStart:O,insetBlockEnd:O,insetInline:O,insetInlineStart:O,insetInlineEnd:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,paddingBlock:O,paddingBlockStart:O,paddingBlockEnd:O,paddingInline:O,paddingInlineStart:O,paddingInlineEnd:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,marginBlock:O,marginBlockStart:O,marginBlockEnd:O,marginInline:O,marginInlineStart:O,marginInlineEnd:O,fontSize:O,backgroundPositionX:O,backgroundPositionY:O,...Hb,zIndex:Np,fillOpacity:To,strokeOpacity:To,numOctaves:Np},Kb={...ld,color:de,backgroundColor:de,outlineColor:de,fill:de,stroke:de,borderColor:de,borderTopColor:de,borderRightColor:de,borderBottomColor:de,borderLeftColor:de,filter:xc,WebkitFilter:xc,mask:wc,WebkitMask:wc},wx=e=>Kb[e],Gb=new Set([xc,wc]);function Sx(e,t){let n=wx(e);return Gb.has(n)||(n=Ct),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Qb=new Set(["auto","none","0"]);function Yb(e,t,n){let r=0,i;for(;r{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Cx(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const Px=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function qb(e){return R0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:ud,cancel:VL}=U0(queueMicrotask,!1),dt={x:!1,y:!1};function Ex(){return dt.x||dt.y}function Zb(e){return e==="x"||e==="y"?dt[e]?null:(dt[e]=!0,()=>{dt[e]=!1}):dt.x||dt.y?null:(dt.x=dt.y=!0,()=>{dt.x=dt.y=!1})}function Tx(e,t){const n=Cx(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Jb(e){return!(e.pointerType==="touch"||Ex())}function eR(e,t,n={}){const[r,i,o]=Tx(e,n);return r.forEach(s=>{let a=!1,l=!1,u;const c=()=>{s.removeEventListener("pointerleave",y)},f=x=>{u&&(u(x),u=void 0),c()},d=x=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,f(x))},p=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},y=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}f(x)}},v=x=>{if(!Jb(x))return;l=!1;const m=t(s,x);typeof m=="function"&&(u=m,s.addEventListener("pointerleave",y,i))};s.addEventListener("pointerenter",v,i),s.addEventListener("pointerdown",p,i)}),o}const kx=(e,t)=>t?e===t?!0:kx(e,t.parentElement):!1,cd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,tR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nR(e){return tR.has(e.tagName)||e.isContentEditable===!0}const rR=new Set(["INPUT","SELECT","TEXTAREA"]);function iR(e){return rR.has(e.tagName)||e.isContentEditable===!0}const bs=new WeakSet;function Op(e){return t=>{t.key==="Enter"&&e(t)}}function Bl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const oR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Op(()=>{if(bs.has(n))return;Bl(n,"down");const i=Op(()=>{Bl(n,"up")}),o=()=>Bl(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _p(e){return cd(e)&&!Ex()}const Ip=new WeakSet;function sR(e,t,n={}){const[r,i,o]=Tx(e,n),s=a=>{const l=a.currentTarget;if(!_p(a)||Ip.has(a))return;bs.add(l),n.stopPropagation&&Ip.add(a);const u=t(l,a),c=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),bs.has(l)&&bs.delete(l),_p(p)&&typeof u=="function"&&u(p,{success:y})},f=p=>{c(p,l===window||l===document||n.useGlobalTarget||kx(l,p.target))},d=p=>{c(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),qb(a)&&(a.addEventListener("focus",u=>oR(u,i)),!nR(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function fd(e){return R0(e)&&"ownerSVGElement"in e}const Rs=new WeakMap;let mn;const Ax=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:fd(r)&&"getBBox"in r?r.getBBox()[t]:r[n],aR=Ax("inline","width","offsetWidth"),lR=Ax("block","height","offsetHeight");function uR({target:e,borderBoxSize:t}){var n;(n=Rs.get(e))==null||n.forEach(r=>{r(e,{get width(){return aR(e,t)},get height(){return lR(e,t)}})})}function cR(e){e.forEach(uR)}function fR(){typeof ResizeObserver>"u"||(mn=new ResizeObserver(cR))}function dR(e,t){mn||fR();const n=Cx(e);return n.forEach(r=>{let i=Rs.get(r);i||(i=new Set,Rs.set(r,i)),i.add(t),mn==null||mn.observe(r)}),()=>{n.forEach(r=>{const i=Rs.get(r);i==null||i.delete(t),i!=null&&i.size||mn==null||mn.unobserve(r)})}}const Ms=new Set;let jr;function hR(){jr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ms.forEach(t=>t(e))},window.addEventListener("resize",jr)}function pR(e){return Ms.add(e),jr||hR(),()=>{Ms.delete(e),!Ms.size&&typeof jr=="function"&&(window.removeEventListener("resize",jr),jr=void 0)}}function jp(e,t){return typeof e=="function"?pR(e):dR(e,t)}function mR(e){return fd(e)&&e.tagName==="svg"}const gR=[...xx,de,Ct],yR=e=>gR.find(vx(e)),Vp=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vr=()=>({x:Vp(),y:Vp()}),Fp=()=>({min:0,max:0}),pe=()=>({x:Fp(),y:Fp()}),vR=new WeakMap;function el(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ko(e){return typeof e=="string"||Array.isArray(e)}const dd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hd=["initial",...dd];function tl(e){return el(e.animate)||hd.some(t=>ko(e[t]))}function bx(e){return!!(tl(e)||e.variants)}function xR(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Se(i))e.addValue(r,i);else if(Se(o))e.addValue(r,hi(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,hi(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Sc={current:null},Rx={current:!1},wR=typeof window<"u";function SR(){if(Rx.current=!0,!!wR)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sc.current=e.matches;e.addEventListener("change",t),t()}else Sc.current=!1}const zp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let va={};function Mx(e){va=e}function CR(){return va}class PR{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=rd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Ne.now();this.renderScheduledAtthis.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Rx.current||SR(),this.shouldReduceMotion=Sc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),$n(this.notifyUpdate),$n(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&cx.has(t)&&this.current instanceof HTMLElement){const{factory:s,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,f=new lx({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:He(c)}),d=s(f);this.valueSubscriptions.set(t,()=>{d(),f.cancel()});return}const r=Ei.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in va){const n=va[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=hi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(b0(r)||M0(r))?r=parseFloat(r):!yR(r)&&Ct.test(n)&&(r=Sx(t,n)),this.setBaseTarget(t,Se(r)?r.get():r)),Se(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=sd(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Se(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Qf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ud.render(this.render)}}class Lx extends PR{constructor(){super(...arguments),this.KeyframeResolver=Xb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Kn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Dx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ER({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function TR(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function $l(e){return e===void 0||e===1}function Cc({scale:e,scaleX:t,scaleY:n}){return!$l(e)||!$l(t)||!$l(n)}function qn(e){return Cc(e)||Nx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Nx(e){return Bp(e.x)||Bp(e.y)}function Bp(e){return e&&e!=="0%"}function xa(e,t,n){const r=e-n,i=t*r;return n+i}function $p(e,t,n,r,i){return i!==void 0&&(e=xa(e,i,r)),xa(e,n,r)+t}function Pc(e,t=0,n=1,r,i){e.min=$p(e.min,t,n,r,i),e.max=$p(e.max,t,n,r,i)}function Ox(e,{x:t,y:n}){Pc(e.x,t.translate,t.scale,t.originPoint),Pc(e.y,n.translate,n.scale,n.originPoint)}const Up=.999999999999,Wp=1.0000000000001;function kR(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;lUp&&(t.x=1),t.yUp&&(t.y=1)}function _t(e,t){e.min+=t,e.max+=t}function Hp(e,t,n,r,i=.5){const o=ee(e.min,e.max,i);Pc(e,t,n,o,r)}function Kp(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Ls(e,t,n){const r=n??e;Hp(e.x,Kp(t.x,r.x),t.scaleX,t.scale,t.originX),Hp(e.y,Kp(t.y,r.y),t.scaleY,t.scale,t.originY)}function _x(e,t){return Dx(TR(e.getBoundingClientRect(),t))}function AR(e,t,n){const r=_x(e,n),{scroll:i}=t;return i&&(_t(r.x,i.offset.x),_t(r.y,i.offset.y)),r}const bR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RR=Pi.length;function MR(e,t,n){let r="",i=!0;for(let o=0;o{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=Gp(e,t.target.x),r=Gp(e,t.target.y);return`${n}% ${r}%`}},LR={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ct.parse(e);if(i.length>5)return r;const o=Ct.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=ee(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}},Ec={borderRadius:{...ji,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ji,borderTopRightRadius:ji,borderBottomLeftRadius:ji,borderBottomRightRadius:ji,boxShadow:LR};function jx(e,{layout:t,layoutId:n}){return Ei.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ec[e]||e==="opacity")}function md(e,t,n){var s;const r=e.style,i=t==null?void 0:t.style,o={};if(!r)return o;for(const a in r)(Se(r[a])||i&&Se(i[a])||jx(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(o[a]=r[a]);return o}function DR(e){return window.getComputedStyle(e)}class NR extends Lx{constructor(){super(...arguments),this.type="html",this.renderInstance=Ix}readValueFromInstance(t,n){var r;if(Ei.has(n))return(r=this.projection)!=null&&r.isProjecting?cc(n):qA(t,n);{const i=DR(t),o=(H0(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return _x(t,n)}build(t,n,r){pd(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return md(t,n,r)}}const OR={offset:"stroke-dashoffset",array:"stroke-dasharray"},_R={offset:"strokeDashoffset",array:"strokeDasharray"};function IR(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?OR:_R;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const jR=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Vx(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(pd(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const p of jR)f[p]!==void 0&&(d[p]=f[p],delete f[p]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&IR(f,i,o,s,!1)}const Fx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),zx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VR(e,t,n,r){Ix(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Fx.has(i)?i:ad(i),t.attrs[i])}function Bx(e,t,n){const r=md(e,t,n);for(const i in e)if(Se(e[i])||Se(t[i])){const o=Pi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}class FR extends Lx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ei.has(n)){const r=wx(n);return r&&r.default||0}return n=Fx.has(n)?n:ad(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Bx(t,n,r)}build(t,n,r){Vx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){VR(t,n,r,i)}mount(t){this.isSVGTag=zx(t.tagName),super.mount(t)}}const zR=hd.length;function $x(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?$x(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>Fb(e,n,r)))}function WR(e){let t=UR(e),n=Qp(),r=!0,i=!1;const o=u=>(c,f)=>{var p;const d=dr(e,f,u==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(d){const{transition:y,transitionEnd:v,...x}=d;c={...c,...x,...v}}return c};function s(u){t=u(e)}function a(u){const{props:c}=e,f=$x(e.parent)||{},d=[],p=new Set;let y={},v=1/0;for(let m=0;m<$R;m++){const h=BR[m],g=n[h],S=c[h]!==void 0?c[h]:f[h],C=ko(S),T=h===u?g.isActive:null;T===!1&&(v=m);let E=S===f[h]&&S!==c[h]&&C;if(E&&(r||i)&&e.manuallyAnimateOnMount&&(E=!1),g.protectedKeys={...y},!g.isActive&&T===null||!S&&!g.prevProp||el(S)||typeof S=="boolean")continue;if(h==="exit"&&g.isActive&&T!==!0){g.prevResolvedValues&&(y={...y,...g.prevResolvedValues});continue}const k=HR(g.prevProp,S);let L=k||h===u&&g.isActive&&!E&&C||m>v&&C,b=!1;const j=Array.isArray(S)?S:[S];let _=j.reduce(o(h),{});T===!1&&(_={});const{prevResolvedValues:W={}}=g,B={...W,..._},Q=A=>{L=!0,p.has(A)&&(b=!0,p.delete(A)),g.needsAnimating[A]=!0;const D=e.getValue(A);D&&(D.liveStyle=!1)};for(const A in B){const D=_[A],I=W[A];if(y.hasOwnProperty(A))continue;let V=!1;gc(D)&&gc(I)?V=!Ux(D,I):V=D!==I,V?D!=null?Q(A):p.add(A):D!==void 0&&p.has(A)?Q(A):g.protectedKeys[A]=!0}g.prevProp=S,g.prevResolvedValues=_,g.isActive&&(y={...y,..._}),(r||i)&&e.blockInitialAnimation&&(L=!1);const $=E&&k;L&&(!$||b)&&d.push(...j.map(A=>{const D={type:h};if(typeof A=="string"&&(r||i)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:I}=e,V=dr(I,A);if(I.enteringChildren&&V){const{delayChildren:ae}=V.transition||{};D.delay=fx(I.enteringChildren,e,ae)}}return{animation:A,options:D}}))}if(p.size){const m={};if(typeof c.initial!="boolean"){const h=dr(e,Array.isArray(c.initial)?c.initial[0]:c.initial);h&&h.transition&&(m.transition=h.transition)}p.forEach(h=>{const g=e.getBaseTarget(h),S=e.getValue(h);S&&(S.liveStyle=!0),m[h]=g??null}),d.push({animation:m})}let x=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,i=!1,x?t(d):Promise.resolve()}function l(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(p=>{var y;return(y=p.animationState)==null?void 0:y.setActive(u,c)}),n[u].isActive=c;const f=a(u);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Qp(),i=!0}}}function HR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ux(t,e):!1}function Qn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qp(){return{animate:Qn(!0),whileInView:Qn(),whileHover:Qn(),whileTap:Qn(),whileDrag:Qn(),whileFocus:Qn(),exit:Qn()}}function Tc(e,t){e.min=t.min,e.max=t.max}function ft(e,t){Tc(e.x,t.x),Tc(e.y,t.y)}function Yp(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Wx=1e-4,KR=1-Wx,GR=1+Wx,Hx=.01,QR=0-Hx,YR=0+Hx;function Oe(e){return e.max-e.min}function XR(e,t,n){return Math.abs(e-t)<=n}function Xp(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=Oe(n)/Oe(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=KR&&e.scale<=GR||isNaN(e.scale))&&(e.scale=1),(e.translate>=QR&&e.translate<=YR||isNaN(e.translate))&&(e.translate=0)}function eo(e,t,n,r){Xp(e.x,t.x,n.x,r?r.originX:void 0),Xp(e.y,t.y,n.y,r?r.originY:void 0)}function qp(e,t,n,r=0){const i=r?ee(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Oe(t)}function qR(e,t,n,r){qp(e.x,t.x,n.x,r==null?void 0:r.x),qp(e.y,t.y,n.y,r==null?void 0:r.y)}function Zp(e,t,n,r=0){const i=r?ee(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Oe(t)}function wa(e,t,n,r){Zp(e.x,t.x,n.x,r==null?void 0:r.x),Zp(e.y,t.y,n.y,r==null?void 0:r.y)}function Jp(e,t,n,r,i){return e-=t,e=xa(e,1/n,r),i!==void 0&&(e=xa(e,1/i,r)),e}function ZR(e,t=0,n=1,r=.5,i,o=e,s=e){if(Bt.test(t)&&(t=parseFloat(t),t=ee(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ee(o.min,o.max,r);e===o&&(a-=t),e.min=Jp(e.min,t,n,a,i),e.max=Jp(e.max,t,n,a,i)}function em(e,t,[n,r,i],o,s){ZR(e,t[n],t[r],t[i],t.scale,o,s)}const JR=["x","scaleX","originX"],eM=["y","scaleY","originY"];function tm(e,t,n,r){em(e.x,t,JR,n?n.x:void 0,r?r.x:void 0),em(e.y,t,eM,n?n.y:void 0,r?r.y:void 0)}function nm(e){return e.translate===0&&e.scale===1}function Kx(e){return nm(e.x)&&nm(e.y)}function rm(e,t){return e.min===t.min&&e.max===t.max}function tM(e,t){return rm(e.x,t.x)&&rm(e.y,t.y)}function im(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Gx(e,t){return im(e.x,t.x)&&im(e.y,t.y)}function om(e){return Oe(e.x)/Oe(e.y)}function sm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Lt(e){return[e("x"),e("y")]}function nM(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:p,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Qx=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rM=Qx.length,am=e=>typeof e=="string"?parseFloat(e):e,lm=e=>typeof e=="number"||O.test(e);function iM(e,t,n,r,i,o){i?(e.opacity=ee(0,n.opacity??1,oM(r)),e.opacityExit=ee(t.opacity??1,0,sM(r))):o&&(e.opacity=ee(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(Eo(e,t,r))}function aM(e,t,n){const r=Se(e)?e:hi(e);return r.start(od("",r,t,n)),r.animation}function Ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const lM=(e,t)=>e.depth-t.depth;class uM{constructor(){this.children=[],this.isDirty=!1}add(t){Gf(this.children,t),this.isDirty=!0}remove(t){ha(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lM),this.isDirty=!1,this.children.forEach(t)}}function cM(e,t){const n=Ne.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&($n(r),e(o-t))};return X.setup(r,!0),()=>$n(r)}function Ds(e){return Se(e)?e.get():e}class fM{constructor(){this.members=[]}add(t){Gf(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(ha(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(ha(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:s}=t.options;(o===void 0||o!==s)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,s;(r=(n=t.options).onExitComplete)==null||r.call(n),(s=(i=t.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||s.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Ns={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ul=["","X","Y","Z"],dM=1e3;let hM=0;function Wl(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Xx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=gx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Xx(r)}function qx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=hM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gM),this.nodes.forEach(CM),this.nodes.forEach(PM),this.nodes.forEach(yM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,c&&c(),c=cM(d,250),Ns.hasAnimatedSinceResize&&(Ns.hasAnimatedSinceResize=!1,this.nodes.forEach(dm)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||bM,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),m=!this.targetLayout||!Gx(this.targetLayout,p),h=!f&&d;if(this.options.layoutRoot||this.resumeFrom||h||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...id(y,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(c,h)}else f||dm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$n(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(EM),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Xx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Oe(this.snapshot.measuredBox.x)&&!Oe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=S/1e3;hm(f.x,s.x,C),hm(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wa(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),kM(this.relativeTarget,this.relativeTargetOrigin,d,C),g&&tM(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=pe()),ft(g,this.relativeTarget)),v&&(this.animationValues=c,iM(c,u,this.latestValues,C,h,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&($n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Ns.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=hi(0)),this.motionValue.jump(0,!1),this.currentAnimation=aM(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),s.onUpdate&&s.onUpdate(c)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(dM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Zx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||pe();const f=Oe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Oe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}ft(a,l),Ls(a,c),eo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new fM),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Wl("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(cm),this.root.sharedNodes.clear()}}}function pM(e){e.updateLayout()}function mM(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;if(o==="size")Lt(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],p=Oe(d);d.min=r[f].min,d.max=d.min+p});else if(o==="x"||o==="y"){const f=o==="x"?"y":"x";Tc(s?t.measuredBox[f]:t.layoutBox[f],r[f])}else Zx(o,t.layoutBox,r)&&Lt(f=>{const d=s?t.measuredBox[f]:t.layoutBox[f],p=Oe(r[f]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Vr();eo(a,r,t.layoutBox);const l=Vr();s?eo(l,e.applyTransform(i,!0),t.measuredBox):eo(l,r,t.layoutBox);const u=!Kx(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:p}=f;if(d&&p){const y=e.options.layoutAnchor||void 0,v=pe();wa(v,t.layoutBox,d.layoutBox,y);const x=pe();wa(x,r,p.layoutBox,y),Gx(v,x)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function gM(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function yM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vM(e){e.clearSnapshot()}function cm(e){e.clearMeasurements()}function xM(e){e.isLayoutDirty=!0,e.updateLayout()}function fm(e){e.isLayoutDirty=!1}function wM(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function SM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CM(e){e.resolveTargetDelta()}function PM(e){e.calcProjection()}function EM(e){e.resetSkewAndRotation()}function TM(e){e.removeLeadSnapshot()}function hm(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pm(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function kM(e,t,n,r){pm(e.x,t.x,n.x,r),pm(e.y,t.y,n.y,r)}function AM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const bM={duration:.45,ease:[.4,0,.1,1]},mm=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gm=mm("applewebkit/")&&!mm("chrome/")?Math.round:at;function ym(e){e.min=gm(e.min),e.max=gm(e.max)}function RM(e){ym(e.x),ym(e.y)}function Zx(e,t,n){return e==="position"||e==="preserve-aspect"&&!XR(om(t),om(n),.2)}function MM(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const LM=qx({attachResizeListener:(e,t)=>Ao(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Hl={current:void 0},Jx=qx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hl.current){const e=new LM({});e.mount(window),e.setOptions({layoutScroll:!0}),Hl.current=e}return Hl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ew=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function DM(e=!0){const t=w.useContext(Kf);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=w.useId();w.useEffect(()=>{if(e)return i(o)},[e]);const s=w.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const tw=w.createContext({strict:!1}),vm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let xm=!1;function NM(){if(xm)return;const e={};for(const t in vm)e[t]={isEnabled:n=>vm[t].some(r=>!!n[r])};Mx(e),xm=!0}function nw(){return NM(),CR()}function OM(e){const t=nw();for(const n in e)t[n]={...t[n],...e[n]};Mx(t)}const _M=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_M.has(e)}let rw=e=>!Sa(e);function IM(e){typeof e=="function"&&(rw=t=>t.startsWith("on")?!Sa(t):e(t))}try{IM(require("@emotion/is-prop-valid").default)}catch{}function jM(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||Se(e[i])||(rw(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const nl=w.createContext({});function VM(e,t){if(tl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ko(n)?n:void 0,animate:ko(r)?r:void 0}}return e.inherit!==!1?t:{}}function FM(e){const{initial:t,animate:n}=VM(e,w.useContext(nl));return w.useMemo(()=>({initial:t,animate:n}),[wm(t),wm(n)])}function wm(e){return Array.isArray(e)?e.join(" "):e}const gd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iw(e,t,n){for(const r in t)!Se(t[r])&&!jx(r,n)&&(e[r]=t[r])}function zM({transformTemplate:e},t){return w.useMemo(()=>{const n=gd();return pd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function BM(e,t){const n=e.style||{},r={};return iw(r,n,e),Object.assign(r,zM(e,t)),r}function $M(e,t){const n={},r=BM(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ow=()=>({...gd(),attrs:{}});function UM(e,t,n,r){const i=w.useMemo(()=>{const o=ow();return Vx(o,t,zx(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};iw(o,e.style,e),i.style={...o,...i.style}}return i}const WM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function yd(e){return typeof e!="string"||e.includes("-")?!1:!!(WM.indexOf(e)>-1||/[A-Z]/u.test(e))}function HM(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??yd(e)?UM:$M)(t,r,i,e),u=jM(t,typeof e=="string",o),c=e!==w.Fragment?{...u,...l,ref:n}:{},{children:f}=t,d=w.useMemo(()=>Se(f)?f.get():f,[f]);return w.createElement(e,{...c,children:d})}function KM({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:GM(n,r,i,e),renderState:t()}}function GM(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ds(o[d]);let{initial:s,animate:a}=e;const l=tl(e),u=bx(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!el(f)){const d=Array.isArray(f)?f:[f];for(let p=0;p(t,n)=>{const r=w.useContext(nl),i=w.useContext(Kf),o=()=>KM(e,t,r,i);return n?o():Wk(o)},QM=sw({scrapeMotionValuesFromProps:md,createRenderState:gd}),YM=sw({scrapeMotionValuesFromProps:Bx,createRenderState:ow}),XM=Symbol.for("motionComponentSymbol");function qM(e,t,n){const r=w.useRef(n);w.useInsertionEffect(()=>{r.current=n});const i=w.useRef(null);return w.useCallback(o=>{var a;o&&((a=e.onMount)==null||a.call(e,o));const s=r.current;if(typeof s=="function")if(o){const l=s(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):s(o);else s&&(s.current=o);t&&(o?t.mount(o):t.unmount())},[t])}const aw=w.createContext({});function Pr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ZM(e,t,n,r,i,o){var g,S;const{visualElement:s}=w.useContext(nl),a=w.useContext(tw),l=w.useContext(Kf),u=w.useContext(ew),c=u.reducedMotion,f=u.skipAnimations,d=w.useRef(null),p=w.useRef(!1);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:o}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const y=d.current,v=w.useContext(aw);y&&!y.projection&&i&&(y.type==="html"||y.type==="svg")&&JM(d.current,n,i,v);const x=w.useRef(!1);w.useInsertionEffect(()=>{y&&x.current&&y.update(n,l)});const m=n[mx],h=w.useRef(!!m&&typeof window<"u"&&!((g=window.MotionHandoffIsComplete)!=null&&g.call(window,m))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,m)));return Kk(()=>{p.current=!0,y&&(x.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),h.current&&y.animationState&&y.animationState.animateChanges())}),w.useEffect(()=>{y&&(!h.current&&y.animationState&&y.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,m)}),h.current=!1),y.enteringChildren=void 0)}),y}function JM(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lw(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&Pr(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function lw(e){if(e)return e.options.allowProjection!==!1?e.projection:lw(e.parent)}function Kl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&OM(r);const o=n?n==="svg":yd(e),s=o?YM:QM;function a(u,c){let f;const d={...w.useContext(ew),...u,layoutId:e2(u)},{isStatic:p}=d,y=FM(u),v=s(u,p);if(!p&&typeof window<"u"){t2();const x=n2(d);f=x.MeasureLayout,y.visualElement=ZM(e,v,d,i,x.ProjectionNode,o)}return P.jsxs(nl.Provider,{value:y,children:[f&&y.visualElement?P.jsx(f,{visualElement:y.visualElement,...d}):null,HM(e,u,qM(v,y.visualElement,c),v,p,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=w.forwardRef(a);return l[XM]=e,l}function e2({layoutId:e}){const t=w.useContext(A0).id;return t&&e!==void 0?t+"-"+e:e}function t2(e,t){w.useContext(tw).strict}function n2(e){const t=nw(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function r2(e,t){if(typeof Proxy>"u")return Kl;const n=new Map,r=(o,s)=>Kl(o,s,e,t),i=(o,s)=>r(o,s);return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,Kl(s,void 0,e,t)),n.get(s))})}const i2=(e,t)=>t.isSVG??yd(e)?new FR(t):new NR(t,{allowProjection:e!==w.Fragment});class o2 extends Kn{constructor(t){super(t),t.animationState||(t.animationState=WR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();el(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let s2=0;class a2 extends Kn{constructor(){super(...arguments),this.id=s2++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:s,custom:a}=this.node.getProps();if(typeof s=="string"){const l=dr(this.node,s,a);if(l){const{transition:u,transitionEnd:c,...f}=l;for(const d in f)(o=this.node.getValue(d))==null||o.jump(f[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const l2={animation:{Feature:o2},exit:{Feature:a2}};function Bo(e){return{point:{x:e.pageX,y:e.pageY}}}const u2=e=>t=>cd(t)&&e(t,Bo(t));function to(e,t,n,r){return Ao(e,t,u2(n),r)}const uw=({current:e})=>e?e.ownerDocument.defaultView:null,Sm=(e,t)=>Math.abs(e-t);function c2(e,t){const n=Sm(e.x,t.x),r=Sm(e.y,t.y);return Math.sqrt(n**2+r**2)}const Cm=new Set(["auto","scroll"]);class cw{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ds(this.lastRawMoveEventInfo,this.transformPagePoint));const p=Gl(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,v=c2(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!v)return;const{point:x}=p,{timestamp:m}=we;this.history.push({...x,timestamp:m});const{onStart:h,onMove:g}=this.handlers;y||(h&&h(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=ds(y,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.end();const{onEnd:v,onSessionEnd:x,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Gl(p.type==="pointercancel"?this.lastMoveEventInfo:ds(y,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,h),x&&x(p,h)},!cd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const l=Bo(t),u=ds(l,this.transformPagePoint),{point:c}=u,{timestamp:f}=we;this.history=[{...c,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,Gl(u,this.history)),this.removeListeners=Vo(to(this.contextWindow,"pointermove",this.handlePointerMove),to(this.contextWindow,"pointerup",this.handlePointerUp),to(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Cm.has(r.overflowX)||Cm.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),X.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),$n(this.updatePoint)}}function ds(e,t){return t?{point:t(e.point)}:e}function Pm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gl({point:e},t){return{point:e,delta:Pm(e,fw(t)),offset:Pm(e,f2(t)),velocity:d2(t,.1)}}function f2(e){return e[0]}function fw(e){return e[e.length-1]}function d2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=fw(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>He(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>He(t)*2&&(r=e[1]);const o=ot(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function h2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function Em(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function p2(e,{top:t,left:n,bottom:r,right:i}){return{x:Em(e.x,n,i),y:Em(e.y,t,r)}}function Tm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Eo(t.min,t.max-r,e.min):r>i&&(n=Eo(e.min,e.max-i,t.min)),Ut(0,1,n)}function y2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const kc=.35;function v2(e=kc){return e===!1?e=0:e===!0&&(e=kc),{x:km(e,"left","right"),y:km(e,"top","bottom")}}function km(e,t,n){return{min:Am(e,t),max:Am(e,n)}}function Am(e,t){return typeof e=="number"?e:e[t]||0}const x2=new WeakMap;class w2{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{n&&this.snapToCursor(Bo(f).point),this.stopAnimation()},s=(f,d)=>{const{drag:p,dragPropagation:y,onDragStart:v}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Zb(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lt(m=>{let h=this.getAxisMotionValue(m).get()||0;if(Bt.test(h)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[m];S&&(h=Oe(S)*(parseFloat(h)/100))}}this.originPoint[m]=h}),v&&X.update(()=>v(f,d),!1,!0),yc(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:v,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:m}=d;if(y&&this.currentDirection===null){this.currentDirection=C2(m),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,m),this.updateAxis("y",d.point,m),this.visualElement.render(),x&&X.update(()=>x(f,d),!1,!0)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new cw(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:uw(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!hs(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=h2(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&Pr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=p2(r.layoutBox,t):this.constraints=!1,this.elastic=v2(n),i!==this.constraints&&!Pr(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Lt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=y2(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Pr(t))return!1;const r=t.current;fi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=AR(r,i.root,this.visualElement.getTransformPagePoint());let s=m2(i.layout.layoutBox,o);if(n){const a=n(ER(s));this.hasMutatedConstraints=!!a,a&&(s=Dx(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Lt(c=>{if(!hs(c,n,this.currentDirection))return;let f=l&&l[c]||{};(s===!0||s===c)&&(f={min:0,max:0});const d=i?200:1e6,p=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return yc(this.visualElement,t),r.start(od(t,r,0,n,this.visualElement,!1))}stopAnimation(){Lt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Lt(n=>{const{drag:r}=this.getProps();if(!hs(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-ee(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Pr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Lt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=g2({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Lt(s=>{if(!hs(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ee(l,u,i[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;x2.set(this.visualElement,this);const t=this.visualElement.current,n=to(t,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps(),d=u.target,p=d!==t&&iR(d);c&&f&&!p&&this.start(u)});let r;const i=()=>{const{dragConstraints:u}=this.getProps();Pr(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=S2(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),X.read(i);const a=Ao(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Lt(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=u[f].translate,d.set(d.get()+u[f].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=kc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function bm(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function S2(e,t,n){const r=jp(e,bm(n)),i=jp(t,bm(n));return()=>{r(),i()}}function hs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function C2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class P2 extends Kn{constructor(t){super(t),this.removeGroupControls=at,this.removeListeners=at,this.controls=new w2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||at}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ql=e=>(t,n)=>{e&&X.update(()=>e(t,n),!1,!0)};class E2 extends Kn{constructor(){super(...arguments),this.removePointerDownListener=at}onPointerDown(t){this.session=new cw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ql(t),onStart:Ql(n),onMove:Ql(r),onEnd:(o,s)=>{delete this.session,i&&X.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=to(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Yl=!1;class T2 extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),Yl&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ns.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,t.layoutDependency!==n&&s.setOptions({...s.options,layoutDependency:n}),Yl=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||X.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),ud.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Yl=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function dw(e){const[t,n]=DM(),r=w.useContext(A0);return P.jsx(T2,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(aw),isPresent:t,safeToRemove:n})}const k2={pan:{Feature:E2},drag:{Feature:P2,ProjectionNode:Jx,MeasureLayout:dw}};function Rm(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&X.postRender(()=>o(t,Bo(t)))}class A2 extends Kn{mount(){const{current:t}=this.node;t&&(this.unmount=eR(t,(n,r)=>(Rm(this.node,r,"Start"),i=>Rm(this.node,i,"End"))))}unmount(){}}class b2 extends Kn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Vo(Ao(this.node.current,"focus",()=>this.onFocus()),Ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Mm(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&X.postRender(()=>o(t,Bo(t)))}class R2 extends Kn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=sR(t,(i,o)=>(Mm(this.node,o,"Start"),(s,{success:a})=>Mm(this.node,s,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Ac=new WeakMap,Xl=new WeakMap,M2=e=>{const t=Ac.get(e.target);t&&t(e)},L2=e=>{e.forEach(M2)};function D2({root:e,...t}){const n=e||document;Xl.has(n)||Xl.set(n,{});const r=Xl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(L2,{root:e,...t})),r[i]}function N2(e,t,n){const r=D2(t);return Ac.set(e,n),r.observe(e),()=>{Ac.delete(e),r.unobserve(e)}}const O2={some:0,all:1};class _2 extends Kn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:O2[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),p=c?f:d;p&&p(u)};this.stopObserver=N2(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(I2(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function I2({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const j2={inView:{Feature:_2},tap:{Feature:R2},focus:{Feature:b2},hover:{Feature:A2}},V2={layout:{ProjectionNode:Jx,MeasureLayout:dw}},F2={...l2,...j2,...k2,...V2},ql=r2(F2,i2),Lm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Dm=n0,hw=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Dm(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=o==null?void 0:o[u];if(c===null)return null;const d=Lm(c)||Lm(f);return i[u][d]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...p}=c;return Object.entries(p).every(y=>{let[v,x]=y;return Array.isArray(x)?x.includes({...o,...a}[v]):{...o,...a}[v]===x})?[...u,f,d]:u},[]);return Dm(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},z2=hw("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function B2({className:e,variant:t,...n}){return P.jsx("div",{className:Fe(z2({variant:t}),e),...n})}const $2=w.forwardRef(({className:e,...t},n)=>P.jsx("div",{ref:n,className:Fe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));$2.displayName="Card";const U2=w.forwardRef(({className:e,...t},n)=>P.jsx("div",{ref:n,className:Fe("flex flex-col space-y-1.5 p-6",e),...t}));U2.displayName="CardHeader";const W2=w.forwardRef(({className:e,...t},n)=>P.jsx("h3",{ref:n,className:Fe("text-2xl font-semibold leading-none tracking-tight",e),...t}));W2.displayName="CardTitle";const H2=w.forwardRef(({className:e,...t},n)=>P.jsx("p",{ref:n,className:Fe("text-sm text-muted-foreground",e),...t}));H2.displayName="CardDescription";const K2=w.forwardRef(({className:e,...t},n)=>P.jsx("div",{ref:n,className:Fe("p-6 pt-0",e),...t}));K2.displayName="CardContent";const G2=w.forwardRef(({className:e,...t},n)=>P.jsx("div",{ref:n,className:Fe("flex items-center p-6 pt-0",e),...t}));G2.displayName="CardFooter";const Q2=hw("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),pw=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const s=r?mP:"button";return P.jsx(s,{className:Fe(Q2({variant:t,size:n,className:e})),ref:o,...i})});pw.displayName="Button";var mw={exports:{}},gw={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var pi=w;function Y2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var X2=typeof Object.is=="function"?Object.is:Y2,q2=pi.useState,Z2=pi.useEffect,J2=pi.useLayoutEffect,eL=pi.useDebugValue;function tL(e,t){var n=t(),r=q2({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return J2(function(){i.value=n,i.getSnapshot=t,Zl(i)&&o({inst:i})},[e,n,t]),Z2(function(){return Zl(i)&&o({inst:i}),e(function(){Zl(i)&&o({inst:i})})},[e]),eL(n),n}function Zl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!X2(e,n)}catch{return!0}}function nL(e,t){return t()}var rL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nL:tL;gw.useSyncExternalStore=pi.useSyncExternalStore!==void 0?pi.useSyncExternalStore:rL;mw.exports=gw;var iL=mw.exports;function oL(){return iL.useSyncExternalStore(sL,()=>!0,()=>!1)}function sL(){return()=>{}}var vd="Avatar",[aL,zL]=vi(vd),[lL,yw]=aL(vd),vw=w.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,o]=w.useState("idle");return P.jsx(lL,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o,children:P.jsx(Ve.span,{...r,ref:t})})});vw.displayName=vd;var xw="AvatarImage",ww=w.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,s=yw(xw,n),a=uL(r,o),l=_o(u=>{i(u),s.onImageLoadingStatusChange(u)});return Tt(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?P.jsx(Ve.img,{...o,ref:t,src:r}):null});ww.displayName=xw;var Sw="AvatarFallback",Cw=w.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,o=yw(Sw,n),[s,a]=w.useState(r===void 0);return w.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&o.imageLoadingStatus!=="loaded"?P.jsx(Ve.span,{...i,ref:t}):null});Cw.displayName=Sw;function Nm(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function uL(e,{referrerPolicy:t,crossOrigin:n}){const r=oL(),i=w.useRef(null),o=r?(i.current||(i.current=new window.Image),i.current):null,[s,a]=w.useState(()=>Nm(o,e));return Tt(()=>{a(Nm(o,e))},[o,e]),Tt(()=>{const l=f=>()=>{a(f)};if(!o)return;const u=l("loaded"),c=l("error");return o.addEventListener("load",u),o.addEventListener("error",c),t&&(o.referrerPolicy=t),typeof n=="string"&&(o.crossOrigin=n),()=>{o.removeEventListener("load",u),o.removeEventListener("error",c)}},[o,n,t]),s}var Pw=vw,Ew=ww,Tw=Cw;const cL=w.forwardRef(({className:e,...t},n)=>P.jsx(Pw,{ref:n,className:Fe("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));cL.displayName=Pw.displayName;const fL=w.forwardRef(({className:e,...t},n)=>P.jsx(Ew,{ref:n,className:Fe("aspect-square h-full w-full",e),...t}));fL.displayName=Ew.displayName;const dL=w.forwardRef(({className:e,...t},n)=>P.jsx(Tw,{ref:n,className:Fe("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));dL.displayName=Tw.displayName;const hL=ce.memo(()=>P.jsxs("section",{className:"min-h-[85vh] lg:min-h-[95vh] flex flex-col lg:flex-row items-center justify-center bg-gradient-to-br from-nutri-lightPurple via-white to-nutri-lightPink p-4 sm:p-6 lg:p-12 gap-8 lg:gap-12 overflow-hidden relative",children:[P.jsx("div",{className:"absolute inset-0 opacity-10 pointer-events-none",style:{backgroundImage:"radial-gradient(#9B87B5 0.5px, transparent 0.5px)",backgroundSize:"24px 24px"}}),P.jsx("div",{className:"absolute top-20 left-10 w-48 h-48 bg-nutri-pink/5 rounded-full blur-[60px] hidden lg:block"}),P.jsx("div",{className:"absolute bottom-20 right-10 w-64 h-64 bg-nutri-purple/5 rounded-full blur-[60px] hidden lg:block"}),P.jsxs("div",{className:"flex-1 max-w-2xl text-center z-10 w-full",children:[P.jsx("div",{className:"flex flex-col items-center gap-4 mb-6",children:P.jsx(B2,{className:"bg-nutri-pink hover:bg-nutri-pink text-white rounded-full px-5 py-2 text-sm font-bold shadow-xl border-2 border-white/20",children:"✨ O Material Favorito das Nutris em 2025"})}),P.jsxs("h1",{className:"text-3xl md:text-5xl lg:text-6xl font-black mb-4 sm:mb-6 leading-[1.1] tracking-tight text-nutri-dark",children:["Tenha acesso a um ",P.jsx("span",{className:"text-nutri-pink",children:"sistema visual completo"})," para suas consultas com ",P.jsx("span",{className:"text-nutri-pink",children:"crianças seletivas"}),P.jsxs("span",{className:"block text-xl md:text-3xl lg:text-4xl mt-4 font-extrabold text-nutri-mutedPurple",children:["Chega de perder noites no ",P.jsxs("span",{className:"relative inline-block text-nutri-pink",children:["Canva",P.jsx("svg",{className:"absolute -bottom-2 left-0 w-full h-3 text-nutri-purple/20",viewBox:"0 0 100 10",preserveAspectRatio:"none",children:P.jsx("path",{d:"M0,5 Q25,0 50,5 T100,5",fill:"none",stroke:"currentColor",strokeWidth:"8",strokeLinecap:"round"})})]})," ou improvisar com folhas em branco."]})]}),P.jsxs("p",{className:"text-base md:text-xl text-nutri-mutedPurple mb-8 sm:mb-12 font-medium leading-relaxed max-w-xl mx-auto",children:["Tenha em mãos ferramentas clínicas prontas para imprimir, plastificar e transformar sua consulta em uma ",P.jsx("span",{className:"text-nutri-pink font-bold",children:"experiência inesquecível"})," para a criança."]}),P.jsxs("div",{className:"flex flex-col gap-6 mb-12 relative group",children:[P.jsxs("div",{className:"relative group max-w-lg mx-auto w-full",children:[P.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-nutri-pink to-nutri-purple rounded-2xl blur-sm opacity-20 hidden lg:block"}),P.jsxs(pw,{onClick:()=>{var e;return(e=document.getElementById("como-funciona"))==null?void 0:e.scrollIntoView({behavior:"smooth"})},className:"relative bg-nutri-pink hover:bg-pink-600 text-white text-lg sm:text-xl md:text-2xl px-6 py-6 sm:px-10 sm:py-10 rounded-2xl shadow-2xl hover:scale-[1.03] active:scale-[0.98] transition-all font-black w-full flex flex-col h-auto group overflow-hidden border-b-4 border-pink-800",children:[P.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-[200%] group-hover:translate-x-[200%] transition-transform duration-1000"}),P.jsx("span",{className:"flex items-center",children:"QUERO O ACESSO AGORA POR 5x R$ 8,19 →"})]})]}),P.jsx("div",{className:"max-w-md mx-auto space-y-4",children:P.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3 bg-white/60 backdrop-blur-md px-6 py-2 rounded-full border border-white/50 shadow-sm hover:shadow-md transition-shadow mb-4",children:[P.jsxs("div",{className:"flex -space-x-3",children:[P.jsx("div",{className:"w-8 h-8 rounded-full border-2 border-white overflow-hidden bg-gray-100",children:P.jsx("img",{src:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=40&h=40&fit=crop",width:"32",height:"32",alt:"Nutri",loading:"eager"})}),P.jsx("div",{className:"w-8 h-8 rounded-full border-2 border-white overflow-hidden bg-gray-100 -ml-3",children:P.jsx("img",{src:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=40&h=40&fit=crop",width:"32",height:"32",alt:"Nutri",loading:"eager"})}),P.jsx("div",{className:"w-8 h-8 rounded-full border-2 border-white overflow-hidden bg-gray-100 -ml-3",children:P.jsx("img",{src:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=40&h=40&fit=crop",width:"32",height:"32",alt:"Nutri",loading:"eager"})})]}),P.jsxs("div",{className:"flex items-center gap-1.5 text-nutri-yellow",children:[P.jsx("div",{className:"flex",children:[...Array(5)].map((e,t)=>P.jsx(pp,{className:"w-3.5 h-3.5 fill-current"},t))}),P.jsx("span",{className:"text-nutri-mutedPurple text-xs sm:text-sm font-black ml-1",children:"+1.500 NUTRIS TRANSFORMADAS"})]})]})})]}),P.jsx("div",{className:"flex flex-wrap justify-center sm:justify-start gap-2 sm:gap-4",children:[{text:"12 Ferramentas",icon:P.jsx(mk,{className:"w-4 h-4 sm:w-5 sm:h-5"})},{text:"Imprima e Use",icon:P.jsx(vk,{className:"w-4 h-4 sm:w-5 sm:h-5"})},{text:"Acesso Vitalício",icon:P.jsx(hp,{className:"w-4 h-4 sm:w-5 sm:h-5"})}].map((e,t)=>P.jsxs(ql.div,{whileHover:{y:-5},className:"bg-white/80 backdrop-blur-md px-4 py-3 rounded-xl sm:rounded-2xl border border-nutri-purple/10 flex items-center gap-3 shadow-sm hover:shadow-md transition-all group",children:[P.jsx("div",{className:"text-nutri-pink group-hover:scale-110 transition-transform shrink-0",children:e.icon}),P.jsx("span",{className:"text-xs sm:text-sm font-black text-nutri-dark whitespace-nowrap",children:e.text})]},t))})]}),P.jsxs("div",{className:"flex-1 relative w-full max-w-lg lg:max-w-none group perspective-1000",children:[P.jsxs("div",{className:"relative bg-white p-2 sm:p-4 rounded-[2rem] sm:rounded-[3rem] shadow-[0_30px_60px_-15px_rgba(155,135,181,0.2)] lg:shadow-[0_50px_100px_-20px_rgba(155,135,181,0.3)] border-4 sm:border-8 border-white group",children:[P.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-nutri-pink/20 to-nutri-purple/20 rounded-[2.5rem] opacity-0 group-hover:opacity-100 transition-opacity duration-700 pointer-events-none"}),P.jsx("img",{src:"https://rfksgzsvjfntcldgkcjg.supabase.co/storage/v1/object/public/imagens//capa.webp",alt:"NutriLúdico Preview",className:"rounded-[1.8rem] sm:rounded-[2.5rem] w-full h-auto object-cover aspect-[4/3] shadow-inner relative z-10",loading:"eager",fetchPriority:"high",width:"600",height:"450"}),P.jsxs(ql.div,{animate:{y:[0,-10,0]},transition:{duration:4,repeat:1/0,ease:"easeInOut"},className:"absolute -bottom-4 -right-4 sm:-bottom-8 sm:-right-8 bg-white p-3 sm:p-5 rounded-2xl sm:rounded-3xl shadow-xl sm:shadow-2xl border-2 border-nutri-lightPurple flex items-center gap-2 sm:gap-4 z-20",children:[P.jsx("div",{className:"w-8 h-8 sm:w-12 sm:h-12 bg-nutri-green/20 rounded-xl sm:rounded-2xl flex items-center justify-center",children:P.jsx(hp,{className:"w-5 h-5 sm:w-7 sm:h-7 text-nutri-green"})}),P.jsxs("div",{children:[P.jsx("p",{className:"text-[11px] font-black text-nutri-mutedPurple leading-none mb-1 uppercase tracking-tighter",children:"MATERIAL DIGITAL"}),P.jsx("p",{className:"text-lg font-black text-nutri-dark leading-none",children:"100% PRONTO"})]})]}),P.jsxs(ql.div,{animate:{y:[0,10,0]},transition:{duration:5,repeat:1/0,ease:"easeInOut",delay:1},className:"absolute -top-4 -left-4 sm:-top-6 sm:-left-6 bg-nutri-purple text-white p-3 sm:p-4 rounded-xl sm:rounded-2xl shadow-xl sm:shadow-2xl z-20 flex flex-col items-center",children:[P.jsx(pp,{className:"w-4 h-4 sm:w-6 sm:h-6 mb-1"}),P.jsxs("p",{className:"text-[10px] font-black leading-none uppercase tracking-widest text-center",children:["Material",P.jsx("br",{}),"Premium"]})]})]}),P.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[120%] h-[120%] border-2 border-nutri-purple/5 rounded-full pointer-events-none -z-10"}),P.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[140%] h-[140%] border border-nutri-pink/5 rounded-full pointer-events-none -z-10"})]})]})),pL=w.lazy(()=>Wt(()=>import("./HowItWorks-BhDlU1U4.js"),[])),mL=w.lazy(()=>Wt(()=>import("./Tools-ClH6Hx__.js"),[])),gL=w.lazy(()=>Wt(()=>import("./Characters-BIzYt0aw.js"),[])),yL=w.lazy(()=>Wt(()=>import("./Testimonials-DjWY2gaA.js"),[])),vL=w.lazy(()=>Wt(()=>import("./Comparison-CCSYABF8.js"),__vite__mapDeps([0,1]))),xL=w.lazy(()=>Wt(()=>import("./PricingSection-BMwksWJ9.js"),__vite__mapDeps([2,1]))),wL=w.lazy(()=>Wt(()=>import("./FAQ-CTdPcWoI.js"),[])),SL=()=>P.jsxs("div",{className:"min-h-screen bg-white font-nunito text-nutri-dark selection:bg-nutri-pink selection:text-white",children:[P.jsx(ok,{}),P.jsx(hL,{}),P.jsxs(w.Suspense,{fallback:P.jsx("div",{className:"h-20"}),children:[P.jsx(pL,{}),P.jsx(mL,{}),P.jsx(gL,{}),P.jsx(yL,{}),P.jsx(vL,{}),P.jsx(xL,{}),P.jsx(wL,{})]}),P.jsx("footer",{className:"py-12 bg-nutri-dark text-white text-center",children:P.jsxs("div",{className:"container px-6",children:[P.jsx("p",{className:"font-bold mb-2",children:"NutriLúdico · A Turminha que Combate a Seletividade"}),P.jsx("p",{className:"text-sm text-nutri-mutedPurple/60",children:"© 2024 Todos os direitos reservados. Feito com amor para nutris e crianças."})]})})]}),CL=()=>{const e=yv();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),P.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:P.jsxs("div",{className:"text-center",children:[P.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),P.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),P.jsx("button",{onClick:()=>window.redirectWithParams("/"),className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},PL=w.lazy(()=>Wt(()=>import("./PurchaseNotification-nmgiQ-lB.js"),[])),EL=w.lazy(()=>Wt(()=>import("./toaster-DUqE2k0C.js"),[]).then(e=>({default:e.Toaster}))),TL=w.lazy(()=>Wt(()=>import("./sonner-A-ZMHOTA.js"),[]).then(e=>({default:e.Toaster}))),kL=new kC,AL=()=>P.jsx(bC,{client:kL,children:P.jsxs(rk,{children:[P.jsxs(w.Suspense,{fallback:null,children:[P.jsx(EL,{}),P.jsx(TL,{}),P.jsx(PL,{})]}),P.jsx(hP,{children:P.jsxs(cP,{children:[P.jsx(Yu,{path:"/",element:P.jsx(SL,{})}),P.jsx(Yu,{path:"*",element:P.jsx(CL,{})})]})})]})});tv(document.getElementById("root")).render(P.jsx(AL,{}));export{cL as A,LL as B,$2 as C,vk as D,pw as E,jL as F,Bk as G,$k as H,Uk as I,A0 as L,ew as M,Kf as P,ML as R,pp as S,Kv as V,DM as a,Kk as b,jo as c,Tt as d,Ve as e,wk as f,vi as g,Et as h,qb as i,P as j,jf as k,If as l,ql as m,_o as n,xt as o,Va as p,CP as q,w as r,Fe as s,hw as t,Wk as u,RL as v,ce as w,B2 as x,fL as y,dL as z};